|
@@ -20,7 +20,8 @@ export const nav: RouteConfig[] = [
|
|
|
meta: { title: "mall" }
|
|
|
},
|
|
|
{
|
|
|
- path: "/shops",
|
|
|
+ path: "/shops/:kw?",
|
|
|
+ props: true,
|
|
|
component: () => import("../views/shops/index.vue"),
|
|
|
meta: { title: "shops" }
|
|
|
},
|
|
@@ -31,7 +32,7 @@ export const nav: RouteConfig[] = [
|
|
|
}
|
|
|
];
|
|
|
const router = new VueRouter({
|
|
|
- mode: "history",
|
|
|
+ mode: process.env.NODE_ENV !== "development" ? "hash" : "history",
|
|
|
base: process.env.BASE_URL,
|
|
|
scrollBehavior(to, from, savedPosition) {
|
|
|
if (savedPosition) {
|
|
@@ -110,7 +111,7 @@ const router = new VueRouter({
|
|
|
{
|
|
|
path: "/shopEnter/add",
|
|
|
component: () => import("../views/shops/enter/add.vue"),
|
|
|
- meta: { title: "shopEnterAdd" }
|
|
|
+ meta: { title: "shopEnterAdd", auth: true }
|
|
|
},
|
|
|
{
|
|
|
path: "/info/buy",
|
|
@@ -125,7 +126,7 @@ const router = new VueRouter({
|
|
|
{
|
|
|
path: "/info/add",
|
|
|
component: () => import("../views/info/add.vue"),
|
|
|
- meta: { title: "infoAdd" }
|
|
|
+ meta: { title: "infoAdd", auth: true }
|
|
|
},
|
|
|
{
|
|
|
path: "/info/supplyDetail",
|