yuwandanmian преди 1 година
родител
ревизия
ed445793dc
променени са 4 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      src/layout/components/Navbar.vue
  2. 1 1
      src/views/embedIndex/index.vue
  3. 1 1
      src/views/reviewIndex/index.vue
  4. 1 1
      src/views/searchSystem/index.vue

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