|
|
@@ -14,7 +14,7 @@ import Loading from "@views/Loading";
|
|
|
Vue.use(Router);
|
|
|
|
|
|
const router = new Router({
|
|
|
- mode: "history",
|
|
|
+ // mode: "history",
|
|
|
routes: [
|
|
|
{
|
|
|
path: "/",
|
|
|
@@ -43,7 +43,7 @@ const router = new Router({
|
|
|
meta: {
|
|
|
title: "产品分类",
|
|
|
keepAlive: true,
|
|
|
- footer: true,
|
|
|
+ // footer: true,
|
|
|
backgroundColor: "#fff"
|
|
|
},
|
|
|
component: Category
|
|
|
@@ -246,18 +246,19 @@ router.replace = function(...args) {
|
|
|
};
|
|
|
|
|
|
router.beforeEach((to, form, next) => {
|
|
|
- const { title, backgroundColor, footer, home, auth } = to.meta;
|
|
|
+ const { title, backgroundColor, footer, auth } = to.meta;
|
|
|
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 || "crmeb商城";
|
|
|
+ document.title = title || process.env.VUE_APP_NAME || "天旺商城";
|
|
|
//判断是否显示底部导航
|
|
|
footer === true ? $store.commit("SHOW_FOOTER") : $store.commit("HIDE_FOOTER");
|
|
|
|
|
|
//控制悬浮按钮是否显示
|
|
|
- home === false ? $store.commit("HIDE_HOME") : $store.commit("SHOW_HOME");
|
|
|
+ // home === false ? $store.commit("HIDE_HOME") : $store.commit("SHOW_HOME");
|
|
|
+ $store.commit("HIDE_HOME");
|
|
|
|
|
|
$store.commit("BACKGROUND_COLOR", backgroundColor || "#F5F5F5");
|
|
|
|