paleDriver7 commited on
Commit
92b6413
·
verified ·
1 Parent(s): b33e7b1

Create vue.config.js

Browse files
Files changed (1) hide show
  1. frontend/vue.config.js +11 -0
frontend/vue.config.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module.exports = {
2
+ devServer: {
3
+ proxy: {
4
+ '/api': {
5
+ target: 'http://localhost:5000', // 后端 API 地址
6
+ changeOrigin: true,
7
+ pathRewrite: { '^/api': '' },
8
+ },
9
+ },
10
+ },
11
+ };