reghao 3 mesi fa
parent
commit
417531b154
3 ha cambiato i file con 2 aggiunte e 26 eliminazioni
  1. 2 2
      src/views/admin/TopNav.vue
  2. 0 13
      src/views/chat/Chat.vue
  3. 0 11
      src/views/disk/Disk.vue

+ 2 - 2
src/views/admin/TopNav.vue

@@ -15,7 +15,7 @@
       <template slot="title">{{ user.username }}</template>
       <el-menu-item index="2-1" @click="backToHome">
         <i class="el-icon-s-home" />
-        <span slot="title">回到主站</span>
+        <span slot="title">回到前台</span>
       </el-menu-item>
       <el-menu-item index="2-3" @click.native="goToLogout">
         <i class="el-icon-close" />
@@ -50,7 +50,7 @@ export default {
       this.$root.Bus.$emit('HandleSideMenu', this.collapsed)
     },
     backToHome() {
-      const path = '/'
+      const path = '/vod'
       if (this.$route.path === path) {
         this.$router.go(0)
         return

+ 0 - 13
src/views/chat/Chat.vue

@@ -32,11 +32,6 @@
                   alt=""
                 >
                 <el-dropdown-menu slot="dropdown">
-                  <el-dropdown-item
-                    icon="el-icon-s-platform"
-                    class="size"
-                    @click.native="backToHome"
-                  >回到主站</el-dropdown-item>
                   <el-dropdown-item
                     icon="el-icon-error"
                     class="size"
@@ -80,14 +75,6 @@ export default {
     this.user = getAuthedUser()
   },
   methods: {
-    backToHome() {
-      const path = '/'
-      if (this.$route.path === path) {
-        this.$router.go(0)
-        return
-      }
-      this.$router.push(path)
-    },
     logout() {
       this.$message.info('logout')
     }

+ 0 - 11
src/views/disk/Disk.vue

@@ -52,11 +52,6 @@
                   alt=""
                 >
                 <el-dropdown-menu slot="dropdown">
-                  <el-dropdown-item
-                    icon="el-icon-s-platform"
-                    class="size"
-                    @click.native="backToHome"
-                  >回到主站</el-dropdown-item>
                   <el-dropdown-item
                     icon="el-icon-error"
                     class="size"
@@ -101,12 +96,6 @@ export default {
   },
   methods: {
     backToHome() {
-      const path = '/'
-      if (this.$route.path === path) {
-        this.$router.go(0)
-        return
-      }
-      this.$router.push(path)
     },
     logout() {
       this.$message.info('logout')