style:上报登录
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -111,7 +111,7 @@ export default { | ... | @@ -111,7 +111,7 @@ export default { |
111 | let code = this.BASE_API.CODE; | 111 | let code = this.BASE_API.CODE; |
112 | localStorage.setItem("token", `Bearer ${res.content}`); | 112 | localStorage.setItem("token", `Bearer ${res.content}`); |
113 | const { result: getMenuData } = (await getMenuInfo(code)) || []; | 113 | const { result: getMenuData } = (await getMenuInfo(code)) || []; |
114 | let path1 = JSON.parse(getMenuData[1].metadata)?.path + '/' + JSON.parse(getMenuData[1].children[0].metadata)?.path | 114 | let path1 = JSON.parse(getMenuData[0].metadata)?.path + '/' + JSON.parse(getMenuData[0].children[0].metadata)?.path |
115 | //登录成功后需判断有无重定向,没有重定向则跳转首页 | 115 | //登录成功后需判断有无重定向,没有重定向则跳转首页 |
116 | const accessRoutes = await this.$store.dispatch( | 116 | const accessRoutes = await this.$store.dispatch( |
117 | "permission/generateRoutes", | 117 | "permission/generateRoutes", | ... | ... |
-
Please register or sign in to post a comment