mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-26 04:23:40 +08:00
chore: 简化登录页
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user