Procházet zdrojové kódy

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

John-Hong před 2 roky
rodič
revize
2d6689523b
3 změnil soubory, kde provedl 6 přidání a 11 odebrání
  1. 4 6
      nginx_parking.conf
  2. 2 2
      src/App.vue
  3. 0 3
      test.js

+ 4 - 6
nginx_parking.conf

@@ -4,9 +4,12 @@ server {
 
     location / {
         index  index.html index.htm;
-	      try_files $uri $uri/ router;
+        try_files $uri $uri/ router;
     }
 
+    location router {
+        rewrite ^.*$ /index.html last;
+    }
 
     location /MP_verify_ZlDO9qUqFIe2bqrN.txt {
         default_type text/html;
@@ -23,11 +26,6 @@ server {
         return 200 'rmja2iMHaYCiylSG';
     }
 
-
-    location router {
-        rewrite ^.*$ /index.html last;
-    }
-
     # location /qaPayment {
     #     proxy_pass https://qa-apim.kerryplus.com/c/api/payment/v1;
     # }

+ 2 - 2
src/App.vue

@@ -93,8 +93,8 @@ export default {
         //   duration: 0,
         //   forbidClick: true,
         // });
-        console.log('触发重新发布功能 6?');
-        console.log('触发重新发布功能 6?');
+        console.log('触发重新发布功能 7?');
+        console.log('触发重新发布功能 7?');
         // 每次进入页面清空 缓存数据
         window.localStorage.clear();
         this.isInit = false;

+ 0 - 3
test.js

@@ -1,3 +0,0 @@
-const urlStr = 'http://localhost:8080/#/?page_id=81BA7D223C96AFA0233A42A56CEEF90974F88A8147A89A5B1C8EADF9B5A688E0F9AE18BB7E1F60926CAAB51C6B70CFCC5A5F650648E80A6EEC2C7BBA8F1519C5A4C3A0AF170E088822E0209A88F44D71CD734C06E912BBEF1953845267818DFDAF362ED187AF24569FFEE7AA78FD1CEEDEA9B3E5C31E2E4A9120E57F39A7536DAEA645B1D603D90615455CF4CBC8EE7B&aaa=098'
-console.log(urlStr.replace(/.*page_id=([0-9A-Z]*).*/g,'$1'))
-