|
@@ -2,8 +2,8 @@
|
|
<div class="navbar">
|
|
<div class="navbar">
|
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
|
|
|
|
|
- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/>
|
|
|
|
- <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav"/>
|
|
|
|
|
|
+ <breadcrumb v-if="!topNav" id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
|
+ <top-nav v-if="topNav" id="topmenu-container" class="topmenu-container" />
|
|
|
|
|
|
<div class="right-menu">
|
|
<div class="right-menu">
|
|
<template v-if="device!=='mobile'">
|
|
<template v-if="device!=='mobile'">
|
|
@@ -95,16 +95,16 @@ export default {
|
|
toggleSideBar() {
|
|
toggleSideBar() {
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
this.$store.dispatch('app/toggleSideBar')
|
|
},
|
|
},
|
|
- async logout() {
|
|
|
|
|
|
+ logout() {
|
|
this.$confirm('确定注销并退出系统吗?', '提示', {
|
|
this.$confirm('确定注销并退出系统吗?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.$store.dispatch('LogOut').then(() => {
|
|
this.$store.dispatch('LogOut').then(() => {
|
|
- location.href = '/index';
|
|
|
|
|
|
+ location.href = '/index'
|
|
})
|
|
})
|
|
- }).catch(() => {});
|
|
|
|
|
|
+ }).catch(() => {})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|