代码格式优化,去除多余的引入

This commit is contained in:
田岩
2025-09-01 10:54:27 +08:00
parent 828186c1d4
commit 4eebd75345
36 changed files with 100 additions and 250 deletions
+2 -3
View File
@@ -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 {