guhongwei преди 3 години
родител
ревизия
48e48f631a
променени са 4 файла, в които са добавени 18 реда и са изтрити 6 реда
  1. 2 2
      src/layout/login/login-1.vue
  2. 1 1
      src/layout/login/login-2.vue
  3. 1 1
      src/router/index.js
  4. 14 2
      src/views/index.vue

+ 2 - 2
src/layout/login/login-1.vue

@@ -48,7 +48,7 @@ export default {
         // 个人用户
         let res = await this.perLogin({ user: values });
         if (this.$checkRes(res)) {
-          this.$router.push({ path: '/account/index' });
+          this.$router.push({ path: this.$route.query.path });
         } else {
           this.$toast({ type: 'fail', message: res.errmsg });
         }
@@ -57,7 +57,7 @@ export default {
         values.institution_code = values.phone;
         let res = await this.orgLogin({ user: values });
         if (this.$checkRes(res)) {
-          this.$router.push({ path: '/account/index' });
+          this.$router.push({ path: this.$route.query.path });
         } else {
           this.$toast({ type: 'fail', message: res.errmsg });
         }

+ 1 - 1
src/layout/login/login-2.vue

@@ -32,7 +32,7 @@ export default {
     async onSubmit(values) {
       let res = await this.login({ user: values });
       if (this.$checkRes(res)) {
-        this.$router.push({ path: '/account/index' });
+        this.$router.push({ path: this.$route.query.path });
       } else {
         this.$toast({ type: 'fail', message: res.errmsg });
       }

+ 1 - 1
src/router/index.js

@@ -460,7 +460,7 @@ router.beforeEach((to, from, next) => {
   sessionStorage.setItem('openid', openid);
   document.title = `${to.meta.title} `;
   const token = localStorage.getItem('token');
-  if (to.path == '/account/index') {
+  if (to.path == '/account/index' || to.path == '/patent/index') {
     if (!token) {
       next(`/login?path=${to.path}`);
     } else {

+ 14 - 2
src/views/index.vue

@@ -50,8 +50,20 @@ export default {
           router: '/service/interflow/index',
         },
         {
-          label: '账号管理-个人中心',
-          router: '/account/index',
+          label: '个人中心-我的消息',
+          router: '/patent/index',
+        },
+        {
+          label: '个人中心-我的申请',
+          router: '/patent/index',
+        },
+        {
+          label: '个人中心-我的专利',
+          router: '/patent/index',
+        },
+        {
+          label: '个人中心-我的交易',
+          router: '/patent/index',
         },
       ],
     };