fix(other): 修正了密码正则匹配规则,并修正了后端接口的地址。

This commit is contained in:
黄磊 2025-02-26 03:13:17 -05:00
parent a5e8bef596
commit 6efeaa4209
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ export const REG_PHONE =
*
* 6-18 characters, including letters, numbers, and underscores
*/
export const REG_PWD = /^\w{6,18}$/;
export const REG_PWD = /^.{6,18}$/;
/** Email reg */
export const REG_EMAIL = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;

View File

@ -16,7 +16,7 @@ export function fetchGetWecomUrl(info: boolean) {
*/
export function fetchLogin(userName: string, password: string) {
return request<Api.Auth.LoginToken>({
url: '/auth/login',
url: '/login',
method: 'post',
data: {
userName,

View File

@ -78,6 +78,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
});
}
} else {
console.log(error);
resetStore();
}

View File

@ -23,8 +23,8 @@ interface FormModel {
}
const model: FormModel = reactive({
userName: 'Soybean',
password: '123456'
userName: 'admin',
password: 'admin@123'
});
const rules = computed<Record<keyof FormModel, App.Global.FormRule[]>>(() => {