Forráskód Böngészése

为登录页超时提供刷新反馈

LD 5 éve
szülő
commit
2339d72c9c
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      resources/views/auth/login.blade.php

+ 6 - 0
resources/views/auth/login.blade.php

@@ -117,6 +117,12 @@
                     tempTip.waitingTip('页面跳转中');
                     tempTip.waitingTip('页面跳转中');
                     location=response.data.url;
                     location=response.data.url;
                 }
                 }
+            }).catch(function(response){
+                tempTip.setDuration(6000);
+                tempTip.waitingTip('错误');
+                console.log(response)
+                alert('页面过期或网络异常,请在刷新后重新登录');
+                window.location.reload();
             })
             })
         }
         }
     </script>
     </script>