feat: 优化注入代码执行顺序 添加自定义注入标识

This commit is contained in:
Forget
2024-12-17 18:06:00 +08:00
parent f4ca2ca2df
commit bd07130fe1
3 changed files with 112 additions and 36 deletions

View File

@@ -28,12 +28,12 @@ export default defineConfig({
server: {
proxy: {
"/api/v1/ws/server": {
target: "ws://localhost:8008",
target: "ws://192.168.5.20:8008",
changeOrigin: true,
ws: true,
},
"/api/v1/": {
target: "http://localhost:8008",
target: "http://192.168.5.20:8008",
changeOrigin: true,
},
},