Browse Source

feat(KIP-6765): KERRY+小程序临停缴费功能未登录身份使用流程

John-Hong 2 năm trước cách đây
mục cha
commit
71a187112d
2 tập tin đã thay đổi với 10 bổ sung2 xóa
  1. 1 2
      nginx_parking.conf
  2. 9 0
      src/routes/index.js

+ 1 - 2
nginx_parking.conf

@@ -3,9 +3,8 @@ server {
     server_name  _;
 
     location / {
-        root   /usr/share/nginx/html;
         index  index.html index.htm;
-	try_files $uri $uri/ router;
+	      try_files $uri $uri/ router;
     }
 
 

+ 9 - 0
src/routes/index.js

@@ -163,12 +163,21 @@ const otherRoutes = routes.map((item) => {
   };
 });
 
+// tparking qa 测试环境
+const otherTparkingRoutes = routes.map((item) => {
+  return {
+    ...item,
+    path: `/tparking/:groupId/:mallId${item.path}`,
+  };
+});
+
 const router = new VueRouter({
   mode: 'history',
   routes: [
     ...routes,
     ...wxRoutes,
     ...otherRoutes,
+    ...otherTparkingRoutes,
     { path: '*', component: import('@/pages/NotFoundComponent/index.vue') },
   ],
 });