web-config修改

This commit is contained in:
2025-11-25 10:33:24 +08:00
parent 16232090d7
commit 61d63be941
2 changed files with 8 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ export default defineConfig({
// 代理配置
proxy: {
'/api': {
target: 'http://127.0.0.1:8081/schoolNewsServ',
target: 'http://127.0.0.1:8081',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
configure: (proxy, options) => {