소스 검색

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

reghao 2 년 전
부모
커밋
513b53c2e4
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 5
      src/assets/js/mixin.js
  2. 1 1
      src/components/layout/NavBar.vue

+ 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"