feat:封装axios接口

This commit is contained in:
2026-07-28 22:57:45 +08:00
parent efa27f126d
commit 1f88341019
13 changed files with 306 additions and 277 deletions

View File

@@ -21,10 +21,12 @@ export default defineConfig({
}
},
server: {
port: 5174,
// 服务器代理 服务器没有部署Nginx的情况下使用
proxy: {
'/study-api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
rewrite: (item) => item.replace(/^\/study-api/, '')
}
}
}
})