前端代理地址修改
This commit is contained in:
parent
8742001982
commit
c439e66fa2
|
|
@ -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/', ''),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue