温度看板搭建示例
This commit is contained in:
+8
-1
@@ -11,6 +11,13 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
open: true
|
||||
open: true,
|
||||
// 开发环境代理:/api 请求转发到后端服务,避免跨域
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:5287',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user