From 3c2c928e83c291cca3d0532ba9a36ec68e15cc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 1 Dec 2022 14:09:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=80=A7=EF=BC=88=E5=85=A8=E5=B1=80?= =?UTF-8?q?=EF=BC=89=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=97=A0=E6=B3=95=E9=89=B4=E6=9D=83=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/login.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index 44836767..11d14b92 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -86,7 +86,12 @@ , icon: 1 , time: 1000 }, function () { - location.hash = search.redirect ? decodeURIComponent(search.redirect) : '/'; + /** + * 可能是LayuiAdmin的bug,如果直接跳转到主页,会出现表格无法获取access_token的问题 + * 所以这里强制刷新到主页 + * location.hash = search.redirect ? decodeURIComponent(search.redirect) : '/'; + */ + location.href = '/'; }); } });