Browse Source

fix: 修复链接读取问题

zhangyuhan 1 year ago
parent
commit
9b8aa33701
1 changed files with 1 additions and 1 deletions
  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: '开发环境-提示',