Jelajahi Sumber

样式修改

zhengjinyi 2 tahun lalu
induk
melakukan
f7e1da251e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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{