|
@@ -36,7 +36,7 @@ import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
|
-import { checkEmail } from '@/utils/validate'
|
|
|
+// import { checkEmail } from '@/utils/validate'
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
const userStore = useUserStore()
|
|
@@ -85,16 +85,16 @@ const formItems = ref({
|
|
|
value: '',
|
|
|
label: '电子邮箱',
|
|
|
disabled: true,
|
|
|
- rules: [
|
|
|
- value => {
|
|
|
- if (value) return true
|
|
|
- return '请输入联系邮箱'
|
|
|
- },
|
|
|
- value => {
|
|
|
- if (checkEmail(value)) return true
|
|
|
- return '请输入正确的电子邮箱'
|
|
|
- }
|
|
|
- ]
|
|
|
+ // rules: [
|
|
|
+ // value => {
|
|
|
+ // if (value) return true
|
|
|
+ // return '请输入联系邮箱'
|
|
|
+ // },
|
|
|
+ // value => {
|
|
|
+ // if (checkEmail(value)) return true
|
|
|
+ // return '请输入正确的电子邮箱'
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
}
|
|
|
]
|
|
|
})
|
|
@@ -115,10 +115,10 @@ formItems.value.options.forEach(item => {
|
|
|
item.value = baseInfo.value[item.key]
|
|
|
query.value.id = baseInfo.value.id
|
|
|
}
|
|
|
- if (item.key === 'email') {
|
|
|
- item.disabled = checkEmail(item.value)
|
|
|
- emailChange = !item.disabled
|
|
|
- }
|
|
|
+ // if (item.key === 'email') {
|
|
|
+ // item.disabled = checkEmail(item.value)
|
|
|
+ // emailChange = !item.disabled
|
|
|
+ // }
|
|
|
})
|
|
|
// 监听store变化
|
|
|
userStore.$subscribe((mutation, state) => {
|