更改环境配置

This commit is contained in:
zoujiandong
2023-06-12 10:16:12 +08:00
parent 11cf2a690f
commit fa1ecdafbc
6 changed files with 22 additions and 13 deletions
+9 -5
View File
@@ -28,14 +28,18 @@ export default defineConfig({
}
},
server: {
host: true,
port: 1798,
//secure: false,
proxy: {
'/api': {
target: 'https://vue3.go-admin.dev',
// '/api': {
// target: 'https://vue3.go-admin.dev',
// changeOrigin: true, //开启跨域
// rewrite: (path) => path.replace(/^\/api/, '')
// },
'/admin': {
target: 'http://dev.hospital.admin.igandanyiyuan.com',
changeOrigin: true, //开启跨域
rewrite: (path) => path.replace(/^\/api/, '')
rewrite: (path) => path.replace(/^\/admin/, '')
}
}
},