|
@@ -72,9 +72,12 @@ const passwordType = ref(false)
|
|
const phoneRef = ref()
|
|
const phoneRef = ref()
|
|
|
|
|
|
// 密码效验
|
|
// 密码效验
|
|
-const regex = /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,16}$/
|
|
|
|
|
|
+// const regex = /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,16}$/
|
|
|
|
+// 请输入8-16位数由数字、大小写字母组成的密码
|
|
|
|
+
|
|
|
|
+const regex = /^[A-Za-z0-9]{8,}$/
|
|
const validPassword = computed(() => {
|
|
const validPassword = computed(() => {
|
|
- return regex.test(query.password) || '请输入8-16位数由数字、大小写字母组成的密码'
|
|
|
|
|
|
+ return regex.test(query.password) || '请输入至少8位数的密码'
|
|
})
|
|
})
|
|
|
|
|
|
const confirmPassword = computed(() => {
|
|
const confirmPassword = computed(() => {
|