不需要修改启动端口,以及代理,属于本地
This commit is contained in:
@@ -17,10 +17,10 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 80, // 前端启动的端口
|
||||
port: 8080, // 前端启动的端口
|
||||
proxy: {
|
||||
'/api': { // 所有以api开头的请求都会被代理
|
||||
target: 'http://112.5.15.136:25536',
|
||||
target: 'http://localhost',
|
||||
changeOrigin: true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user