fix: 配置文件修改
This commit is contained in:
@@ -40,31 +40,20 @@ export default defineConfig(({ mode, command }) => {
|
||||
proxy: {
|
||||
// https://cn.vitejs.dev/config/#server-proxy
|
||||
'/dev-api': {
|
||||
target: 'http://81.70.19.60:8288',
|
||||
target: 'http://154.8.147.51:8288',
|
||||
// target: 'http://127.0.0.1:8080',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||
},
|
||||
'/file-upload': {
|
||||
target: 'http://140.249.24.92:9000',
|
||||
target: 'http://8.140.22.151:9000',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/file-upload/, '')
|
||||
},
|
||||
'/fileUrl': {
|
||||
target: 'http://140.249.24.92:9000', // 本地
|
||||
target: 'http://8.140.22.151:9000', // 本地
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/fileUrl/, '')
|
||||
},
|
||||
'/bimapi': {
|
||||
target: 'http://140.249.24.92:3101', // 本地
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/bimapi/, '')
|
||||
},
|
||||
'/model': {
|
||||
// bim模型
|
||||
target: 'http://140.249.24.92:3101',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/model/, '')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user