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