代码格式优化,去除多余的引入
This commit is contained in:
@@ -102,7 +102,6 @@
|
||||
label: "否",
|
||||
}
|
||||
] // 性别
|
||||
const base_url = get_base_url()
|
||||
|
||||
// 去选择百禄
|
||||
const gotoMascot = () => {
|
||||
@@ -137,7 +136,7 @@
|
||||
}
|
||||
// 显示性别的计算属性
|
||||
const showGenderText = computed(() => {
|
||||
const item = sexOptions.find((item) => item.value == userInfo.value.gender)
|
||||
const item = sexOptions.find((item) => item.value === userInfo.value.gender)
|
||||
if (item) {
|
||||
return item.label
|
||||
} else {
|
||||
@@ -147,7 +146,7 @@
|
||||
|
||||
// 显示是否匿名的计算属性
|
||||
const showAnonymousText = computed(() => {
|
||||
const item = anonymousOptions.find((item) => item.value == userInfo.value?.anonymous)
|
||||
const item = anonymousOptions.find((item) => item.value === userInfo.value?.anonymous)
|
||||
if (item) {
|
||||
return item.label
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user