ソースを参照

!111 新窗口打开页面时提示跳转无上一页无法跳转问题
Merge pull request !111 from 陈二木/master

Karson 6 年 前
コミット
843a10fadd
1 ファイル変更1 行追加1 行削除
  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);