mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2025-12-30 02:52:26 +00:00
开发环境配置ws代理
This commit is contained in:
@@ -21,6 +21,11 @@ export default defineConfig({
|
||||
target: 'http://localhost:8080', // 后台服务器的源
|
||||
changeOrigin: true // 修改源
|
||||
},
|
||||
'/ws': {
|
||||
// 获取请求中带 /api 的请求
|
||||
target: 'ws://localhost:8080', // 后台服务器的源
|
||||
changeOrigin: true // 修改源
|
||||
},
|
||||
'/oss/': {
|
||||
// 获取图片的请求
|
||||
target: 'https://bk0528.oss-cn-beijing.aliyuncs.com', // 对象存储oss的源
|
||||
|
||||
Reference in New Issue
Block a user