From 2a7bda171d7e0221b173f897cb7a64059f4eb5eb Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期五, 09 八月 2024 20:09:13 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web --- src/store/modules/user/index.ts | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts index 0a3e0d3..51faef3 100644 --- a/src/store/modules/user/index.ts +++ b/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 + }, }, }); -- Gitblit v1.8.0