Jelajahi Sumber

Revert "docs: "撤销这部分提交""

This reverts commit 178a51da6a1ec56f8610b1f75bf35fbc362398e4.
ritchie 2 tahun lalu
induk
melakukan
926f5245d4
3 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 1 2
      package.json
  2. 4 3
      src/utils/config.js
  3. 1 1
      vue.config.js

+ 1 - 2
package.json

@@ -10,15 +10,14 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "airwallex-payment-elements": "latest",
     "@amap/amap-jsapi-loader": "^1.0.1",
     "@vant/touch-emulator": "^1.4.0",
-    "airwallex-payment-elements": "latest",
     "axios": "^0.20.0",
     "better-scroll": "^2.3.0",
     "big.js": "^6.2.1",
     "core-js": "^3.6.5",
     "crypto-js": "^4.1.1",
-    "dayjs": "^1.11.7",
     "js-md5": "^0.7.3",
     "lib-flexible": "^0.3.2",
     "moment": "^2.29.4",

+ 4 - 3
src/utils/config.js

@@ -1,10 +1,11 @@
 let baseURL;
 // 开发环境
 if (process.env.NODE_ENV === 'development') {
-    // 测试的,..99
-    // baseURL = 'https://szwl.sunzee.com.cn/'
+    // 测试的
+    baseURL = 'https://szwl.sunzee.com.cn/'
     // 正式的
-    baseURL = 'https://sz.sunzee.com.cn/'
+    // baseURL = 'https://sz.sunzee.com.cn/'
+    
     // baseURL = 'http://120.25.151.99:49002/'
     // 编译环境
 } else {

+ 1 - 1
vue.config.js

@@ -6,7 +6,7 @@ module.exports = {
 		open: true,
     proxy: {
       '/': { //前端任何含/api的URL请求都会被反向代理。如http://localhost:8000/xxx/api/source/xxx的请求会变成服务器的反向代理请求
-        // target: 'http://127.0.0.1:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
+        //target: 'http://127.0.0.1:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
         target: 'http://112.74.63.148:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
         changeOrigin: true, // 是否跨域
         pathRewrite: {