mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-27 13:46:41 +08:00
fix(other): 修正了密码正则匹配规则,并修正了后端接口的地址。
This commit is contained in:
parent
a5e8bef596
commit
6efeaa4209
@ -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+)*$/;
|
||||
|
@ -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,
|
||||
|
@ -78,6 +78,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
console.log(error);
|
||||
resetStore();
|
||||
}
|
||||
|
||||
|
@ -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[]>>(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user