feat: 大屏优化

This commit is contained in:
huanghao1412 2024-01-10 21:58:03 +08:00
parent c13a56a1c0
commit f18343603f
3 changed files with 3 additions and 3 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' # VITE_DEV_PATH = 'http://192.168.0.120:3001'
# production path # production path
VITE_PRO_PATH = 'http://192.168.0.34:8024' # VITE_PRO_PATH = 'http://192.168.0.34:11887'

View File

@ -44,7 +44,7 @@ const prodProxy = (mode:any) => {
// 生产list页缩略图 开发时注释掉 // 生产list页缩略图 开发时注释掉
'/svgConfig/customLargeScreen/data/file': { '/svgConfig/customLargeScreen/data/file': {
// @ts-ignore // @ts-ignore
target: loadEnv(mode, process.cwd()).VITE_DEV_PATH, target: loadEnv(mode, process.cwd()).VITE_PRO_PATH,
changeOrigin: true, changeOrigin: true,
rewrite: (path:any) => { rewrite: (path:any) => {
console.log(path.replace(new RegExp(`^/svgConfig/customLargeScreen/data/file`), '/data/file')) console.log(path.replace(new RegExp(`^/svgConfig/customLargeScreen/data/file`), '/data/file'))

View File

@ -19,6 +19,6 @@ export default class Config extends PublicConfigClass implements CreateComponent
public chartConfig = cloneDeep(Theme1Config) public chartConfig = cloneDeep(Theme1Config)
public option = cloneDeep(option) public option = cloneDeep(option)
public customData = cloneDeep({ public customData = cloneDeep({
title: '中国建设银行广东省分行中心机房监控系统', title: '',
}) })
} }