Spaces:
Paused
Paused
Create vue.config.js
Browse files- 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 |
+
};
|