zhengjinyi hace 2 años
padre
commit
f7e1da251e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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{