不需要修改启动端口,以及代理,属于本地

This commit is contained in:
2026-02-25 17:27:09 +08:00
parent b286fa4dbe
commit b05f65c77b

View File

@@ -17,10 +17,10 @@ export default defineConfig({
}, },
}, },
server: { server: {
port: 80, // 前端启动的端口 port: 8080, // 前端启动的端口
proxy: { proxy: {
'/api': { // 所有以api开头的请求都会被代理 '/api': { // 所有以api开头的请求都会被代理
target: 'http://112.5.15.136:25536', target: 'http://localhost',
changeOrigin: true, changeOrigin: true,
} }
} }