|
@@ -6,7 +6,7 @@ meta:
|
|
|
</route>
|
|
</route>
|
|
|
|
|
|
|
|
<script lang="ts" setup name="PersonalProfile">
|
|
<script lang="ts" setup name="PersonalProfile">
|
|
|
-import type { FormInstance, FormRules, UploadProps } from 'element-plus'
|
|
|
|
|
|
|
+import type { FormRules, UploadProps } from 'element-plus'
|
|
|
|
|
|
|
|
const state = reactive({
|
|
const state = reactive({
|
|
|
loading: false,
|
|
loading: false,
|
|
@@ -26,9 +26,6 @@ const state = reactive({
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const router = useRouter()
|
|
|
|
|
-const formRef = ref<FormInstance>()
|
|
|
|
|
-
|
|
|
|
|
const validatePass2 = (rule: any, value: any, callback: any) => {
|
|
const validatePass2 = (rule: any, value: any, callback: any) => {
|
|
|
if (value === '') {
|
|
if (value === '') {
|
|
|
callback(new Error('请再次输入密码'))
|
|
callback(new Error('请再次输入密码'))
|
|
@@ -68,14 +65,14 @@ const uploadSuccess: UploadProps['onSuccess'] = (res) => {
|
|
|
|
|
|
|
|
function submitForm(formName: string) {
|
|
function submitForm(formName: string) {
|
|
|
if (formName === 'basic') {
|
|
if (formName === 'basic') {
|
|
|
- basicFormRef.value && basicFormRef.value.validate((valid) => {
|
|
|
|
|
|
|
+ basicFormRef.value && basicFormRef.value.validate((valid: any) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
window.console.log('abc')
|
|
window.console.log('abc')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- passFormRef.value && passFormRef.value.validate((valid) => {
|
|
|
|
|
|
|
+ passFormRef.value && passFormRef.value.validate((valid: any) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
window.console.log('abc')
|
|
window.console.log('abc')
|
|
|
}
|
|
}
|