diff --git a/config/appConfig.js b/config/appConfig.js index f749a67..9796013 100644 --- a/config/appConfig.js +++ b/config/appConfig.js @@ -8,7 +8,7 @@ const appConfig = { // 环境变量相关 env: {}, - wss: "ws://192.168.1.31:2348", // + wss: "ws://192.168.1.42:2348", // // wss: "wss://sockets.sxczgkj.com/wss", // // 环境变量常量 ENV_ENUM: { diff --git a/http/http.js b/http/http.js index 14122b6..39d8962 100644 --- a/http/http.js +++ b/http/http.js @@ -13,7 +13,7 @@ import storageManage from '@/commons/utils/storageManage.js' import { sm4DecryptByResData } from '@/commons/utils/encryptUtil.js' import infoBox from "@/commons/utils/infoBox.js" import go from '@/commons/utils/go.js'; -let baseUrl = 'http://101.37.12.135:8080' +let baseUrl = 'http://192.168.1.42' // #ifdef H5 baseUrl = '/server3/mch' // #endif diff --git a/manifest.json b/manifest.json index ece3a89..7e01739 100644 --- a/manifest.json +++ b/manifest.json @@ -169,7 +169,7 @@ "proxy": { "/shopApi": { // 需要被代理的后台地址 - "target": "https://wxcashiertest.sxczgkj.cn/cashierService", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { @@ -178,7 +178,7 @@ }, "/mch": { // 需要被代理的后台地址 - "target": "https://b.rscygroup.com", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { @@ -187,7 +187,7 @@ }, "/server1": { // 需要被代理的后台地址 - "target": "http://101.37.12.135:8080", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { @@ -196,7 +196,7 @@ }, "/server3": { // 需要被代理的后台地址 - "target": "http://101.37.12.135:8080", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { @@ -205,7 +205,7 @@ }, "/ysk": { // 需要被代理的后台地址 - "target": "http://192.168.1.31", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { @@ -217,7 +217,7 @@ }, "/ww": { // 需要被代理的后台地址 - "target": "http://192.168.1.15:8000", + "target": "http://192.168.1.42", "changeOrigin": true, "secure": false, "pathRewrite": { diff --git a/vite.config.js b/vite.config.js index cde930f..cbd5097 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,13 +8,13 @@ export default defineConfig({ server: { proxy: { '/server3': { - target: 'http://101.37.12.135:8080', // 目标服务 + target: 'http://192.168.1.42', // 目标服务 changeOrigin: true, rewrite: path => path.replace(/^\/server3/, ''), }, "/ysk" : { // 需要被代理的后台地址 - "target" : "http://192.168.1.31", + "target" : "http://192.168.1.42", "changeOrigin": true, rewrite: (path) => path.replace(/^\/ysk/, '') }, diff --git a/vue.config.js b/vue.config.js index bd4910e..1fcca62 100644 --- a/vue.config.js +++ b/vue.config.js @@ -28,12 +28,12 @@ module.exports = { devServer: { proxy: { '/server3': { - target: 'http://101.37.12.135:8080', // 目标服务器地址 + target: 'http://192.168.1.42', // 目标服务器地址 changeOrigin: true, // 是否改变源地址 rewrite: '/' // 重写路径 }, "/ysk": { - "target": "http://192.168.1.31", + "target": "http://192.168.1.42", changeOrigin: true, pathRewrite: { "^/ysk": ""