fix: 修复前端错误

This commit is contained in:
wangdan-fit2cloud 2024-09-25 10:13:14 +08:00
parent f576065052
commit daaab3a641

View File

@ -12,7 +12,7 @@ export default defineConfig(({ mode }) => {
const prefix = process.env.VITE_DYNAMIC_PREFIX || ENV.VITE_BASE_PATH;
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/api'] = {
target: 'http://81.70.36.87:8000',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path) => path.replace(ENV.VITE_BASE_PATH, '/')
}