chore: 简化登录页

This commit is contained in:
xiaoxian521
2022-09-07 16:47:57 +08:00
parent 60cdaf4697
commit 63e2ddc171
20 changed files with 34 additions and 1375 deletions

View File

@@ -23,11 +23,7 @@ export const useUserStore = defineStore({
id: "pure-user",
state: (): userType => ({
token,
name,
// 前端生成的验证码(按实际需求替换)
verifyCode: "",
// 登录显示组件判断 0登录 1手机登录 2二维码登录 3注册 4忘记密码默认0登录
currentPage: 0
name
}),
actions: {
SET_TOKEN(token) {
@@ -36,12 +32,6 @@ export const useUserStore = defineStore({
SET_NAME(name) {
this.name = name;
},
SET_VERIFYCODE(verifyCode) {
this.verifyCode = verifyCode;
},
SET_CURRENTPAGE(value) {
this.currentPage = value;
},
// 登入
async loginByUsername(data) {
return new Promise<void>((resolve, reject) => {