style: 性别label
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="edit-detail-wrapper flex-1">
|
<div class="edit-detail-wrapper flex-1">
|
||||||
<seller-header
|
<seller-header class="edit-detail-header">
|
||||||
class="edit-detail-header"
|
|
||||||
>
|
|
||||||
<template #right>
|
<template #right>
|
||||||
<div class="operate-menu flex">
|
<div class="operate-menu flex">
|
||||||
<div class="menu-btn flex align-center save" @click="handleClickMenu('draft')">
|
<div class="menu-btn flex align-center save" @click="handleClickMenu('draft')">
|
||||||
@@ -128,7 +126,14 @@
|
|||||||
sketchList: []
|
sketchList: []
|
||||||
})
|
})
|
||||||
|
|
||||||
const genderOptions = STORE.state.UserHabit?.sex.value || []
|
const genderOptions = computed(() => {
|
||||||
|
return (
|
||||||
|
STORE.state.UserHabit?.sex.value.map((el) => ({
|
||||||
|
...el,
|
||||||
|
name: el.key.toLowerCase()
|
||||||
|
})) || []
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
const fallbackCategoryOptions: Record<string, RadioOption[]> = {
|
const fallbackCategoryOptions: Record<string, RadioOption[]> = {
|
||||||
MALE: STORE.state.UserHabit?.MalePosition || [],
|
MALE: STORE.state.UserHabit?.MalePosition || [],
|
||||||
@@ -456,7 +461,7 @@
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const data = history.state
|
const data = history.state
|
||||||
if (data?.type === "edit") {
|
if (data?.type === "edit") {
|
||||||
itemId.value = history.state?.id
|
itemId.value = history.state?.id
|
||||||
handleGetDetailById()
|
handleGetDetailById()
|
||||||
} else {
|
} else {
|
||||||
const designItemIds = history.state?.designItemIds || []
|
const designItemIds = history.state?.designItemIds || []
|
||||||
|
|||||||
Reference in New Issue
Block a user