From 38d11c5d99a78a7c65ccb2b24d6f49b97f9c0fdd Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 17 六月 2022 17:27:15 +0800
Subject: [PATCH] 1..完成基础设置:用户清单列表查询、新增、编辑、删除 功能开发
---
src/views/login/index.vue | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index f94c563..1c94a2b 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -132,6 +132,7 @@
// callback()
// }
const mPattern = /^\w+$/ // 姝e垯 绛変环浜嶽A-Za-z0-9_]
+
if (value.length < 5) {
callback(new Error('璐﹀彿闀垮害涓嶅皯浜庝簲浣嶏紒'))
} else if (!mPattern.test(value)) {
@@ -153,17 +154,12 @@
password: '123456'
},
loginRules: {
- username: [{ required: true, trigger: 'blur', validator: validateUsername }],
- password: [{ required: true, trigger: 'blur', validator: validatePassword }]
+ username: [{ required: true, trigger: ['blur', 'change'], validator: validateUsername }],
+ password: [{ required: true, trigger: ['blur', 'change'], validator: validatePassword }]
},
loading: false,
passwordType: 'password',
redirect: undefined,
- // carouselArr: [
- // { url: '@/assets/images/img1.png', title: '鏅烘収鐗╄仈', content: '鐢熶骇鐜板満鏁版嵁瀹炴椂閲囬泦銆佷紶杈俱�佸缁村害鍙鍖栧憟鐜�' }
- // // { url: 'yellow', title: '鏅烘収鐗╄仈2', content: '鐢熶骇鐜板満鏁版嵁瀹炴椂閲囬泦銆佷紶杈俱�佸缁村害鍙鍖栧憟鐜�2' },
- // // { url: 'blue', title: '鏅烘収鐗╄仈3', content: '鐢熶骇鐜板満鏁版嵁瀹炴椂閲囬泦銆佷紶杈俱�佸缁村害鍙鍖栧憟鐜�3' }
- // ],
focus1: false,
focus2: false
}
--
Gitblit v1.9.3