Browse Source

feat(): 路由配置项

17602115550 10 months ago
parent
commit
5905d179ed
2 changed files with 2 additions and 1 deletions
  1. 1 0
      config/index.js
  2. 1 1
      src/config.js

+ 1 - 0
config/index.js

@@ -15,6 +15,7 @@ module.exports = {
                 changeOrigin: true,
                 changeOrigin: true,
                 // 204是线上地址
                 // 204是线上地址
                 // target: 'http://192.168.0.181:9315/',
                 // target: 'http://192.168.0.181:9315/',
+                // target:'http://127.0.0.1:8080/',
                 target: "http://ieven.wenzhouteck.net/",
                 target: "http://ieven.wenzhouteck.net/",
                 secure: false,
                 secure: false,
                 pathRewrite: {
                 pathRewrite: {

+ 1 - 1
src/config.js

@@ -56,7 +56,7 @@ let apiUrl = process.env.NODE_ENV === "development" ? "/api/" : "/";
 // apiUrl = "http://ieven.wenzhouteck.net/";
 // apiUrl = "http://ieven.wenzhouteck.net/";
 
 
 // apiUrl = 'http://localhost:8080/'
 // apiUrl = 'http://localhost:8080/'
-// apiUrl = "/";
+// apiUrl = '/api/'
 
 
 export {
 export {
     baseFetchUrl,
     baseFetchUrl,