Преглед на файлове

将 /user/ 路由替换为 /vod/user/

reghao преди 3 месеца
родител
ревизия
a6d1e70894
променени са 4 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      src/components/layout/NavBar.vue
  2. 1 1
      src/components/layout/NavBarNoSearch.vue
  3. 1 1
      src/views/user/Home.vue
  4. 1 1
      src/views/user/UserRelation.vue

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

@@ -271,7 +271,7 @@ export default {
     },
     // ****************************************************************************************************************
     goToUserHome() {
-      const path = '/user/' + this.user.userIdStr
+      const path = '/vod/user/' + this.user.userIdStr
       if (this.$route.path === path) {
         this.$router.go(0)
         return

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

@@ -115,7 +115,7 @@ export default {
     },
     // ****************************************************************************************************************
     goToUserHome() {
-      const path = '/user/' + this.user.userIdStr
+      const path = '/vod/user/' + this.user.userIdStr
       if (this.$route.path === path) {
         this.$router.go(0)
         return

+ 1 - 1
src/views/user/Home.vue

@@ -285,7 +285,7 @@ export default {
       this.goToTab(this.activeName)
     },
     goToTab(activeName) {
-      const path = '/user/' + this.userId + '/' + activeName
+      const path = '/vod/user/' + this.userId + '/' + activeName
       if (this.$route.path === path) {
         this.$router.go(0)
         return

+ 1 - 1
src/views/user/UserRelation.vue

@@ -179,7 +179,7 @@ export default {
       this.goToTab(this.activeName)
     },
     goToTab(activeName) {
-      const path = '/user/' + this.userId + '/' + activeName
+      const path = '/vod/user/' + this.userId + '/' + activeName
       if (this.$route.path === path) {
         this.$router.go(0)
         return