wuxiang hai 1 ano
pai
achega
61e9db250b
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      vue.config.js

+ 4 - 4
vue.config.js

@@ -50,12 +50,12 @@ module.exports = {
     devServer: {
         proxy: {
             '/api': {
-                target: 'http://localhost:80',
+                target: 'http://localhost:5000',
                 // ws: true,
                 changeOrigin: true,
-                // pathRewrite:{
-                //   "^/geoserver":""
-                // } 
+                pathRewrite: {
+                    "^/api": ""
+                }
             }
         }
     },