Quellcode durchsuchen

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

reghao vor 3 Monaten
Ursprung
Commit
a6d1e70894

+ 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