变更url

This commit is contained in:
gyq 2025-09-29 11:10:22 +08:00
parent 096f591123
commit 3edcddbac9
5 changed files with 12 additions and 12 deletions

View File

@ -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: {

View File

@ -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

View File

@ -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": {

View File

@ -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/, '')
},

View File

@ -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": ""