feat: 大屏优化

This commit is contained in:
huanghao1412 2024-01-10 22:06:00 +08:00
parent f18343603f
commit d6310851c6
2 changed files with 2 additions and 1 deletions

2
.env
View File

@ -6,4 +6,4 @@ VITE_DEV_PATH = 'http://192.168.0.34:8024'
# VITE_DEV_PATH = 'http://192.168.0.120:3001'
# production path
# VITE_PRO_PATH = 'http://192.168.0.34:11887'
VITE_PRO_PATH = 'http://192.168.0.34:11887'

View File

@ -45,6 +45,7 @@ const prodProxy = (mode:any) => {
'/svgConfig/customLargeScreen/data/file': {
// @ts-ignore
target: loadEnv(mode, process.cwd()).VITE_PRO_PATH,
// target: window.location.href,
changeOrigin: true,
rewrite: (path:any) => {
console.log(path.replace(new RegExp(`^/svgConfig/customLargeScreen/data/file`), '/data/file'))