浏览代码

Merge pull request #593 from John-Hong/John/release-3.18.0/SCRM-7349

fix(SCRM-7349): 车场连接超时后,返回停车首页
John-Hong 9 月之前
父节点
当前提交
6219648dad
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/api/request.js

+ 1 - 0
src/api/request.js

@@ -264,6 +264,7 @@ export const createAxiosByinterceptors = (config) => {
         }, 100)
         setTimeout(() => {
           Toast.clear()
+          window.history.back() // 返回到停车首页
         }, 3800)
         return Promise.reject(error.code);
       }