Alex 4 years ago
parent
commit
7f4767cc65
2 changed files with 5 additions and 1 deletions
  1. 3 0
      src/router/index.js
  2. 2 1
      src/views/system/personalPage/index.vue

+ 3 - 0
src/router/index.js

@@ -40,6 +40,9 @@ export const constantRoutes = [
   {
     path: '/template/t1/:id(\\d+)',
     component: (resolve) => require(['@/views/template/t1'], resolve),
+    meta:{
+      title: '个人页'
+    },
     hidden: true
   },
   {

+ 2 - 1
src/views/system/personalPage/index.vue

@@ -411,7 +411,8 @@ export default {
       const pid = this.form.id;
       const tid = this.form.templateId;
       const route = this.templateList.find(item => item.id === tid).route;
-      window.open(window.location.origin + route+'/' + pid);
+      var win = window.open(window.location.origin + route+'/' + pid);
+      win.document.title='个人页 - '+this.form.stakeholder
     }
   }
 };