yuwandanmian 1 year ago
parent
commit
ed445793dc

+ 1 - 1
src/layout/components/Navbar.vue

@@ -43,7 +43,7 @@ export default {
     toggleSideBar() {
       this.$store.dispatch('app/toggleSideBar');
     },
-    async layout() {
+    async logout() {
       await this.$store.dispatch('user/logout')
       const preUrl = sessionStorage.getItem("preUrl")
       this.$router.push({ path: '/login', query: { preUrl }})

+ 1 - 1
src/views/embedIndex/index.vue

@@ -45,7 +45,7 @@ export default {
       console.log(tab.name);
       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 }})

+ 1 - 1
src/views/reviewIndex/index.vue

@@ -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 }})

+ 1 - 1
src/views/searchSystem/index.vue

@@ -51,7 +51,7 @@ export default {
       console.log(tab.name);
       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 }})