zhengjinyi 2 лет назад
Родитель
Сommit
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{