mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
feat(web): 新增预测管理和策略表单功能
- 添加预测管理页面和相关组件 - 实现策略表单组件,支持创建和编辑策略 - 优化表格组件,增加分页和数据加载功能 - 调整视频监控组件布局 - 修复部分组件样式问题
This commit is contained in:
@@ -32,6 +32,15 @@ module.exports = defineConfig({
|
||||
return true
|
||||
}
|
||||
}
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://192.168.0.187:19801', // 目标服务器地址
|
||||
changeOrigin: true, // 修改请求头中的host
|
||||
pathRewrite: {
|
||||
'^/api': '' // 重写路径,去掉/api前缀
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
css: {
|
||||
@@ -44,8 +53,7 @@ module.exports = defineConfig({
|
||||
}
|
||||
},
|
||||
extract: {
|
||||
filename: `css/.[contenthash:8].css`,
|
||||
chunkFilename: `css/.[contenthash:8].chunk.css`
|
||||
ignoreOrder: true // 忽略 CSS 顺序警告
|
||||
}
|
||||
},
|
||||
// webpack相关配置
|
||||
|
||||
Reference in New Issue
Block a user