Pārlūkot izejas kodu

docs: "一些设备通用参数配置"

ritchie 2 gadi atpakaļ
vecāks
revīzija
178a51da6a
3 mainītis faili ar 6 papildinājumiem un 6 dzēšanām
  1. 2 1
      package.json
  2. 3 4
      src/utils/config.js
  3. 1 1
      vue.config.js

+ 2 - 1
package.json

@@ -10,14 +10,15 @@
     "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",

+ 3 - 4
src/utils/config.js

@@ -1,11 +1,10 @@
 let baseURL;
 // 开发环境
 if (process.env.NODE_ENV === 'development') {
-    // 测试的
-    baseURL = 'https://szwl.sunzee.com.cn/'
+    // 测试的,..99
+    // 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: {