浏览代码

样式修改

zhengjinyi 2 年之前
父节点
当前提交
f7e1da251e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/static/js/product/detail.js

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -285,7 +285,7 @@ var productDetail = new Vue({
                     window.location.href = href;
                 },function(){
                     // 关闭
-                    if(document.referrer === ''){
+                    if(window.history.length === 0){
                         window.location.href="/index.html";
                         window.close();
                     }else{