|
@@ -35,7 +35,7 @@ export default {
|
|
|
handleClick(tab, event) {
|
|
|
this.activeName = tab.name
|
|
|
},
|
|
|
- async layout() {
|
|
|
+ async logout() {
|
|
|
await this.$store.dispatch('user/logout')
|
|
|
const preUrl = sessionStorage.getItem("preUrl")
|
|
|
this.$router.push({ path: '/login', query: { preUrl }})
|