Prechádzať zdrojové kódy

个人帐号跳转到 account 站点(新标签中打开)

reghao 2 rokov pred
rodič
commit
513b53c2e4

+ 1 - 5
src/assets/js/mixin.js

@@ -199,11 +199,7 @@ export const userMixin = {
       })
     },
     goToProfile() {
-      if (this.$route.path === '/u/profile') {
-        this.$router.go(0)
-        return
-      }
-      this.$router.push('/u/profile')
+      window.open("//account.reghao.cn", "_blank");
     },
     goToCollection() {
       if (this.$route.path === '/u/collection') {

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

@@ -84,7 +84,7 @@
               icon="el-icon-user-solid"
               class="size"
               @click.native="goToProfile"
-            >个人资料</el-dropdown-item>
+            >个人帐号</el-dropdown-item>
             <el-dropdown-item
               icon="el-icon-star-on"
               class="size"