From 5d44f9e23124f05b0906efd754ba7f8fac1f7cdd Mon Sep 17 00:00:00 2001 From: Ai3_刘小龙 <wisty0317@163.com> Date: 星期三, 20 十二月 2023 14:26:49 +0800 Subject: [PATCH] update src/views/system/dept/index.vue. append-to-body --- src/views/system/user/profile/userInfo.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/system/user/profile/userInfo.vue b/src/views/system/user/profile/userInfo.vue index 885f1c9..289f8d4 100644 --- a/src/views/system/user/profile/userInfo.vue +++ b/src/views/system/user/profile/userInfo.vue @@ -32,7 +32,7 @@ const userForm = computed(() => props.user); const { proxy } = getCurrentInstance() as ComponentInternalInstance; const userRef = ref<ElFormInstance>(); -const rules = ref<ElFormRules>({ +const rule: ElFormRules = { nickName: [{ required: true, message: '鐢ㄦ埛鏄电О涓嶈兘涓虹┖', trigger: 'blur' }], email: [ { required: true, message: '閭鍦板潃涓嶈兘涓虹┖', trigger: 'blur' }, @@ -50,7 +50,8 @@ }, { pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: '璇疯緭鍏ユ纭殑鎵嬫満鍙风爜', trigger: 'blur' } ] -}); +}; +const rules = ref<ElFormRules>(rule); /** 鎻愪氦鎸夐挳 */ const submit = () => { -- Gitblit v1.9.3