tangjunhao 1 tuần trước cách đây
mục cha
commit
0ccce1c98a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => {
     next({ name: 'login' });
   }
   else {
-    document.title = to.name || '默认标题';
+    document.title = to.meta.title || '默认标题';
     next();
   }
 });