修改新窗口打开页面时提示跳转无上一页无法跳转,改跳转到首页,体验好一点

pull/111/head
loong 2019-03-16 16:19:21 +08:00
parent f5c72393d2
commit f914920078
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
var interval = setInterval(function () {
var time = --wait.innerHTML;
if (time <= 0) {
location.href = "{$url}";
location.href = history.length <= 1 ? "/" : "{$url}";
clearInterval(interval);
}
}, 1000);