Browse Source

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

loong 6 years ago
parent
commit
f914920078
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/view/tpl/dispatch_jump.tpl

+ 1 - 1
application/common/view/tpl/dispatch_jump.tpl

@@ -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);