mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-27 21:56:42 +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
|
* 6-18 characters, including letters, numbers, and underscores
|
||||||
*/
|
*/
|
||||||
export const REG_PWD = /^\w{6,18}$/;
|
export const REG_PWD = /^.{6,18}$/;
|
||||||
|
|
||||||
/** Email reg */
|
/** Email reg */
|
||||||
export const REG_EMAIL = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
|
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) {
|
export function fetchLogin(userName: string, password: string) {
|
||||||
return request<Api.Auth.LoginToken>({
|
return request<Api.Auth.LoginToken>({
|
||||||
url: '/auth/login',
|
url: '/login',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
userName,
|
userName,
|
||||||
|
@ -78,6 +78,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
console.log(error);
|
||||||
resetStore();
|
resetStore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@ interface FormModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const model: FormModel = reactive({
|
const model: FormModel = reactive({
|
||||||
userName: 'Soybean',
|
userName: 'admin',
|
||||||
password: '123456'
|
password: 'admin@123'
|
||||||
});
|
});
|
||||||
|
|
||||||
const rules = computed<Record<keyof FormModel, App.Global.FormRule[]>>(() => {
|
const rules = computed<Record<keyof FormModel, App.Global.FormRule[]>>(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user