将端口号8787改为7979

This commit is contained in:
2026-04-16 17:12:28 +08:00
parent 015d1e4d5b
commit 7b39a2a505
10 changed files with 18 additions and 18 deletions

View File

@@ -4,5 +4,5 @@ ENV = 'development'
# base路径
VITE_BASE_PATH = './'
# 本地环境接口地址 - 用空字符串走同源,由 vite 代理到 8787,避免 CORS
# 本地环境接口地址 - 用空字符串走同源,由 vite 代理到 7979,避免 CORS
VITE_AXIOS_BASE_URL = ''

View File

@@ -29,10 +29,10 @@ const viteConfig = ({ mode }: ConfigEnv): UserConfig => {
open: VITE_OPEN != 'false',
// 开发时把 /api、/admin、/install 代理到 webman避免跨域
proxy: {
'/api': { target: 'http://localhost:8787', changeOrigin: true },
'/admin': { target: 'http://localhost:8787', changeOrigin: true },
'/install': { target: 'http://localhost:8787', changeOrigin: true },
'/plugin': { target: 'http://localhost:8787', changeOrigin: true },
'/api': { target: 'http://localhost:7979', changeOrigin: true },
'/admin': { target: 'http://localhost:7979', changeOrigin: true },
'/install': { target: 'http://localhost:7979', changeOrigin: true },
'/plugin': { target: 'http://localhost:7979', changeOrigin: true },
},
},
build: {