Althars123 4 years ago
parent
commit
e18fecd4a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

@@ -34,10 +34,10 @@ module.exports = {
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://172.17.0.1:8080/ruoyi-admin`,
+        target: `http://172.17.0.1:8080`,
         changeOrigin: true,
         pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
+          ['^' + process.env.VUE_APP_BASE_API]: 'ruoyi-admin'
         }
       }
     },