tangning 4 tháng trước cách đây
mục cha
commit
4a93c631eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/request/index.ts

+ 1 - 1
src/request/index.ts

@@ -99,7 +99,7 @@ axios.interceptors.request.use(async (config) => {
 
 const responseInterceptor = (res: AxiosResponse<any, any>) => {
   closeLoading();
-  if (res.data.code === 4010 || res.data.code === 7012){
+  if (res.data.code === 4010 || res.data.code === 7012 || res.data.code === 4008){
     const { setLoginShow, loginShow } = getLogin();
     console.log("4010",loginShow,'loginShow', res);
     setLoginShow(true)