x 5 năm trước cách đây
mục cha
commit
eb4a1ab3eb
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/router/index.js

+ 2 - 2
src/router/index.js

@@ -247,12 +247,12 @@ router.replace = function(...args) {
 
 router.beforeEach((to, form, next) => {
   const { title, backgroundColor, footer, auth } = to.meta;
-  console.log(to.name, form.name);
+  // console.log(to.name, form.name);
   if (auth === true && !$store.state.app.token) {
     if (form.name === "Login") return;
     return toLogin(true, to.fullPath);
   }
-  document.title = title || process.env.VUE_APP_NAME || "天旺商城";
+  document.title = title || process.env.VUE_APP_NAME || "天旺";
   //判断是否显示底部导航
   footer === true ? $store.commit("SHOW_FOOTER") : $store.commit("HIDE_FOOTER");