!111 新窗口打开页面时提示跳转无上一页无法跳转问题

Merge pull request !111 from 陈二木/master
pull/111/MERGE
Karson 2019-05-30 18:41:19 +08:00 committed by Gitee
commit 843a10fadd
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);