vite配置

This commit is contained in:
2026-05-29 16:29:12 +08:00
parent 2fba4fbba7
commit 021daa88dd
+9 -4
View File
@@ -14,6 +14,11 @@ export default defineConfig({
host: true, host: true,
open: true, open: true,
proxy: { proxy: {
// 合同管理接口:合同发起、法务推送、数据采集回调等都走 /contract
'/contract/': {
target: 'http://127.0.0.1:8899',
changeOrigin: true,
},
'/launch': { '/launch': {
target: 'http://127.0.0.1:8899', target: 'http://127.0.0.1:8899',
changeOrigin: true, changeOrigin: true,
@@ -30,15 +35,15 @@ export default defineConfig({
target: 'http://127.0.0.1:8899', target: 'http://127.0.0.1:8899',
changeOrigin: true, changeOrigin: true,
}, },
'/seal': {
target: 'http://127.0.0.1:8899',
changeOrigin: true,
},
'/seal/ws': { '/seal/ws': {
target: 'ws://127.0.0.1:8899', target: 'ws://127.0.0.1:8899',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
}, },
'/seal': {
target: 'http://127.0.0.1:8899',
changeOrigin: true,
},
}, },
}, },
}) })