Browse Source

修改将访问路径进行编码

plg 1 month ago
parent
commit
9bee9a3c7a
1 changed files with 1 additions and 0 deletions
  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) {