多环境配置
This commit is contained in:
@@ -57,6 +57,11 @@ export default defineConfig (({mode, command}) => {
|
||||
target: 'http://localhost:18080/openhis',
|
||||
changeOrigin: true,
|
||||
rewrite: p => p.replace (/^\/prod-api/, ''),
|
||||
},
|
||||
'/test-api': {
|
||||
target: 'http://localhost:18080/openhis',
|
||||
changeOrigin: true,
|
||||
rewrite: p => p.replace (/^\/test-api/, ''),
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user