Skip to content

Commit

Permalink
feat #2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
luoqiz committed Jul 25, 2022
1 parent 2a97042 commit b4e1bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/store/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const userStore = defineStore("user", {
const {
data: { tokenInfo }
} = await userLogin(loginParam);
console.log(tokenInfo);
if (tokenInfo) {
setToken(tokenInfo.token);
await this.getUserInfo();
Expand Down
5 changes: 2 additions & 3 deletions src/views/auth/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ const schema = {
account: yup
.string()
.required()
// .matches(/^\d{11}|.+@.+$/, t("page.common.login.form.schema.email"))
.matches(/^\d{11}|.+@.+$/, "123123")
.matches(/^\d{11}|.+@.+$/, t("page.common.login.form.schema.email"))
.label(t("page.common.login.form.schema.label.email")),
password: yup
.string()
.required()
.min(6, t("page.common.login.form.schema.password"))
.min(3, t("page.common.login.form.schema.password"))
.label(t("page.common.login.form.schema.label.password"))
};
Expand Down

0 comments on commit b4e1bd4

Please sign in to comment.