Explorar el Código

修改将访问路径进行编码

plg hace 1 mes
padre
commit
9bee9a3c7a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/utils/http.js

+ 1 - 0
src/utils/http.js

@@ -96,6 +96,7 @@ axios.interceptors.request.use(
       ? `Bearer ${oSessionStorage.getItem("token")}`
       : "";
     //  console.log(config.headers.Authorization)
+    config.url=encodeURI(config.url) 
     return config;
   },
   function (error) {