Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
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
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
d1a55c84
Commit
d1a55c84
authored
Jan 03, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set status loggedIn
parent
1b425cec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
nav.vue
components/nav.vue
+1
-0
index.vue
pages/index.vue
+1
-0
No files found.
components/nav.vue
View file @
d1a55c84
...
@@ -55,6 +55,7 @@ export default {
...
@@ -55,6 +55,7 @@ export default {
}),
}),
});
});
localStorage
.
removeItem
(
"
token
"
);
localStorage
.
removeItem
(
"
token
"
);
this
.
$auth
.
$storage
.
setUniversal
(
"
loggedIn
"
,
'
false
'
);
this
.
$router
.
push
(
"
/
"
);
this
.
$router
.
push
(
"
/
"
);
},
},
},
},
...
...
pages/index.vue
View file @
d1a55c84
...
@@ -95,6 +95,7 @@ export default {
...
@@ -95,6 +95,7 @@ export default {
localStorage
.
setItem
(
"
token
"
,
resp
.
data
.
bearer_token
);
localStorage
.
setItem
(
"
token
"
,
resp
.
data
.
bearer_token
);
this
.
$auth
.
$storage
.
setUniversal
(
"
token
"
,
resp
.
data
.
bearer_token
);
this
.
$auth
.
$storage
.
setUniversal
(
"
token
"
,
resp
.
data
.
bearer_token
);
this
.
$auth
.
$storage
.
setUniversal
(
"
userName
"
,
resp
.
data
.
name
);
this
.
$auth
.
$storage
.
setUniversal
(
"
userName
"
,
resp
.
data
.
name
);
this
.
$auth
.
$storage
.
setUniversal
(
"
loggedIn
"
,
'
true
'
);
if
(
resp
.
status
==
"
success
"
)
{
if
(
resp
.
status
==
"
success
"
)
{
this
.
$router
.
push
(
"
home
"
);
this
.
$router
.
push
(
"
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