|
|
@@ -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");
|
|
|
|