|
|
@@ -36,6 +36,9 @@ import { mapGetters } from 'vuex' |
|
|
|
import Breadcrumb from '@/components/Breadcrumb' |
|
|
|
import Hamburger from '@/components/Hamburger' |
|
|
|
|
|
|
|
import { |
|
|
|
logoutApi |
|
|
|
} from '@/api/login' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
Breadcrumb, |
|
|
@@ -52,8 +55,9 @@ export default { |
|
|
|
this.$store.dispatch('app/toggleSideBar') |
|
|
|
}, |
|
|
|
async logout() { |
|
|
|
// await this.$store.dispatch('user/logout') |
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`) |
|
|
|
logoutApi().then(res => { |
|
|
|
this.$router.push(`/login`) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|