chore: 开发代理切换到本地后端(localhost:8081)
This commit is contained in:
@@ -27,8 +27,8 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: "http://192.168.71.2:8080/", // 家
|
// target: "http://192.168.71.2:8080/", // 家
|
||||||
target: "http://192.168.1.36:8080/", // 公司
|
// target: "http://192.168.1.36:8080/", // 公司
|
||||||
// target: "http://localhost:8080/", // 本地Docker测试
|
target: "http://localhost:8081/", // 本地后端(s-file, local-dev 配置)
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ""),
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user