mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-30 00:29:16 +08:00
feat: 大屏优化
This commit is contained in:
parent
f18343603f
commit
d6310851c6
2
.env
2
.env
@ -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'
|
||||
|
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user