Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
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
Nguyễn Hải Sơn
quasar-web-base
Commits
21be3682
Commit
21be3682
authored
May 17, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update logout
parent
63934809
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
axios.ts
src/boot/axios.ts
+1
-1
index.vue
src/pages/menu/index.vue
+12
-0
actions.ts
src/store/authentication/actions.ts
+7
-0
No files found.
src/boot/axios.ts
View file @
21be3682
...
@@ -67,7 +67,7 @@ export default boot<StateInterface>(({ app, store }) => {
...
@@ -67,7 +67,7 @@ export default boot<StateInterface>(({ app, store }) => {
type
:
'warning'
,
type
:
'warning'
,
message
:
i18n
.
global
.
t
(
'tokenInvalidMessage'
),
message
:
i18n
.
global
.
t
(
'tokenInvalidMessage'
),
});
});
void
store
.
dispatch
(
'authentication/logOut'
);
void
store
.
dispatch
(
'authentication/logOut
NotNotification
'
);
// ... Logout
// ... Logout
}
else
{
}
else
{
Notify
.
create
({
Notify
.
create
({
...
...
src/pages/menu/index.vue
0 → 100644
View file @
21be3682
<
template
>
<q-page
padding
>
<!-- content -->
</q-page>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
export
default
defineComponent
({
// name: 'PageName'
})
</
script
>
src/store/authentication/actions.ts
View file @
21be3682
...
@@ -94,6 +94,13 @@ const actions: ActionTree<AuthenticationState, StateInterface> = {
...
@@ -94,6 +94,13 @@ const actions: ActionTree<AuthenticationState, StateInterface> = {
});
});
await
Router
.
push
({
name
:
Pages
.
login
});
await
Router
.
push
({
name
:
Pages
.
login
});
},
},
async
logOutNotNotification
(
context
)
{
context
.
commit
(
'setToken'
,
undefined
);
context
.
commit
(
'setUserInfo'
,
undefined
);
context
.
commit
(
'setPageInfo'
,
undefined
);
context
.
commit
(
'setGroupInfo'
,
undefined
);
await
Router
.
push
({
name
:
Pages
.
login
});
},
async
getListPages
(
context
)
{
async
getListPages
(
context
)
{
try
{
try
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
...
...
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