Browse Source

fix(SCRM-7349): 车场连接超时后,返回停车首页

john 9 tháng trước cách đây
mục cha
commit
357bedf915
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);
       }