Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
pc
Commits
d06ce9fa
Commit
d06ce9fa
authored
Jan 07, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token改回来
parent
41b7355a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
login.vue
src/views/login.vue
+2
-1
No files found.
src/views/login.vue
View file @
d06ce9fa
...
...
@@ -83,7 +83,8 @@ export default {
if
(
res
.
code
==
200
)
{
res
.
token
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
// 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
.
$router
.
push
({
path
:
'/portal-home'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment