Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
addbb88b
authored
Sep 27, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
56075462
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
src/components/menu.vue
src/components/menu.vue
View file @
addbb88b
...
...
@@ -177,7 +177,7 @@
<
script
>
import
Vue
from
'vue'
;
import
Util
from
"../tool"
;
import
{
Button
,
Dialog
,
Form
,
FormItem
,
Input
,
Menu
,
MenuItem
,
MenuItemGroup
,
Message
,
Submenu
,
Tooltip
}
from
'element-ui'
import
{
Button
,
Dialog
,
Form
,
FormItem
,
Input
,
Menu
,
MenuItem
,
MenuItemGroup
,
Message
,
Submenu
,
Tooltip
,
MessageBox
}
from
'element-ui'
Vue
.
prototype
.
$message
=
Message
;
Vue
.
use
(
Menu
).
use
(
MenuItem
).
use
(
MenuItemGroup
).
use
(
Submenu
).
use
(
Form
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Button
).
use
(
Tooltip
).
use
(
Input
);
...
...
@@ -388,14 +388,21 @@ export default {
});
},
logout
()
{
this
.
$http
(
'post'
,
"/auth/logout"
).
then
(
res
=>
{
Util
.
delCookie
(
'token'
);
window
.
location
.
href
=
'/#/login'
;
window
.
userInfo
=
""
history
.
go
(
0
);
}).
catch
(
err
=>
{
console
.
log
(
err
.
message
);
MessageBox
.
confirm
(
'确定退出系统吗?'
,
{
type
:
'error'
}).
then
(()
=>
{
this
.
$http
(
'post'
,
"/auth/logout"
).
then
(
res
=>
{
Util
.
delCookie
(
'token'
);
window
.
location
.
href
=
'/#/login'
;
window
.
userInfo
=
""
history
.
go
(
0
);
}).
catch
(
err
=>
{
console
.
log
(
err
.
message
);
})
}).
catch
(()
=>
{
})
}
}
}
...
...
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