refactor(config): 更新配置文件和组件逻辑

- 在 `EditCom.vue` 中修改 `workModeIdSelect` 的监听器,添加异步处理逻辑,并引入新的方法 `getPolicyList` 以获取策略列表。
- 在 `device.vue` 中更新状态显示逻辑,使用 `is_error` 和 `is_running` 替换 `is_online`。
This commit is contained in:
zhoumengru
2025-09-18 16:02:43 +08:00
parent 575dc0478c
commit 4916d34b39
4 changed files with 31 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ module.exports = defineConfig({
proxy: {
'/api': {
// 代理前缀,可以自定义(如 '/api'
target: 'http://192.168.0.187:19801', // 目标服务器地址
target: 'http://192.168.0.187:19800', // 目标服务器地址
changeOrigin: true, // 是否改变请求源(跨域必备)
pathRewrite: {
'^/api': '' // 重写路径,去掉 '/api' 前缀