Procházet zdrojové kódy

fix: 修复链接读取问题

zhangyuhan před 1 rokem
rodič
revize
9b8aa33701
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      apps/work-bench/src/api/interceptors.js

+ 1 - 1
apps/work-bench/src/api/interceptors.js

@@ -35,7 +35,7 @@ service.interceptors.response.use(
         // 判断是否需要登录
         if (res.error_msg === '需要登录' || res.error_code === 1001) {
           if (!debug) {
-            location.href = '/notin/page?backTo=' + location.href
+            location.href = '/notin/page?backTo=' + encodeURIComponent(location.href)
           } else {
             Notification({
               title: '开发环境-提示',