浏览代码

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