feat: 改用axios调用真实API,添加/api代理,优化视图布局
This commit is contained in:
parent
6e96e1828a
commit
5ba442561b
7 changed files with 484 additions and 22 deletions
|
|
@ -19,6 +19,10 @@ export default defineConfig({
|
|||
proxy: {
|
||||
"/images": {
|
||||
target: 'http://localhost:8888'
|
||||
},
|
||||
"/api": {
|
||||
target: 'http://localhost:3000',
|
||||
rewrite: path => path.replace(/^\/api/, '')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue