Commit c852fd2a authored by 程卓's avatar 程卓

token增加 bearer

parent a41539d3
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ 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', res.token.access_token) this.$cookie.set('token', 'bearer '+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