youyawu 5 gadi atpakaļ
vecāks
revīzija
4b6d6d1970
2 mainītis faili ar 6 papildinājumiem un 5 dzēšanām
  1. 1 1
      .env.production
  2. 5 4
      src/router/index.ts

+ 1 - 1
.env.production

@@ -1,2 +1,2 @@
 VUE_APP_Target=/
-VUE_APP_BASE_API=/
+VUE_APP_BASE_API=http://192.168.100.254:10002/

+ 5 - 4
src/router/index.ts

@@ -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",