src/store/modules/user/index.ts
@@ -30,6 +30,7 @@ certification: undefined, role: '', resources:undefined, hrefUrl:undefined }), getters: { @@ -67,6 +68,7 @@ async login(loginForm: LoginData):string { try { const res = await userLogin(loginForm); setToken(res.data.access_token); const userInfo = { avatar: res.data.avatar, @@ -101,6 +103,11 @@ this.logoutCallBack(); } }, getHreFurl(url: string) { this.hrefUrl=url }, }, });