gaohaiyong 1 gadu atpakaļ
vecāks
revīzija
abc352b08a

+ 7 - 1
src/layout/components/AppMain.vue

@@ -45,7 +45,13 @@ export default {
       });
     },
     t_title(e){
-      this.t_name = e;
+      
+      this.isRouterAlive = false;
+      this.$nextTick(function () {
+        this.isRouterAlive = true;
+        this.t_name = e;
+       console.log(this.t_name)
+      });
     }
 
   },

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

@@ -90,7 +90,7 @@ export default {
         new_route[key] = route[key];
       }
       new_route.t_name = this.t_name;
-
+      console.log(new_route)
       if (new_route.name == this.blankRouteName) {
         return;
       }

+ 1 - 1
src/router/index.js

@@ -381,7 +381,7 @@ export const constantRoutes = [
         component: () => import('@/views/outpatient/control/detail'),
         meta: { 
           title: '门诊病历详情',
-          keepAlive: 1,
+          keepAlive: 0,
           canMultipleOpen: true 
         },
         hidden: true,