Browse Source

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

fix(SCRM-7349): 车场连接超时后,返回停车首页
John-Hong 9 tháng trước cách đây
mục cha
commit
6219648dad
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
       }