Quellcode durchsuchen

帐号登入成功后返回的 UserInfo 中有一个 userIdStr 字段表示混淆后的 userId

reghao vor 6 Monaten
Ursprung
Commit
f964f54d37
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/components/layout/NavBar.vue
  2. 1 1
      src/components/layout/NavBarNoSearch.vue

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

@@ -276,7 +276,7 @@ export default {
     },
     // ****************************************************************************************************************
     goToUserHome() {
-      const path = '/user/' + this.user.userId
+      const path = '/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.userId
+      const path = '/user/' + this.user.userIdStr
       if (this.$route.path === path) {
         this.$router.go(0)
         return