Commit d06ce9fa authored by Gakki's avatar Gakki

token改回来

parent 41b7355a
...@@ -83,7 +83,8 @@ export default { ...@@ -83,7 +83,8 @@ export default {
if (res.code == 200) { if (res.code == 200) {
res.token = this.$com.confirm(res, 'data.content', []) res.token = this.$com.confirm(res, 'data.content', [])
// console.log(res.token) // console.log(res.token)
this.$cookie.set('token', 'bearer '+res.token.access_token) // this.$cookie.set('token', 'bearer '+res.token.access_token)
this.$cookie.set('token', res.token.access_token)
this.$cookie.set('userName', res.name) // 存储当前账号的用户名 this.$cookie.set('userName', res.name) // 存储当前账号的用户名
this.$router.push({ this.$router.push({
path: '/portal-home' path: '/portal-home'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment