前端代理地址修改

This commit is contained in:
fxjhello 2023-05-22 11:59:39 +08:00
parent 8742001982
commit c439e66fa2
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default defineConfig((env) => {
open: false, open: false,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://146.56.190.29:7861', target: 'http://127.0.0.1:7861',
changeOrigin: true, // 允许跨域 changeOrigin: true, // 允许跨域
rewrite: path => path.replace('/api/', ''), rewrite: path => path.replace('/api/', ''),
}, },