Sfoglia il codice sorgente

列表错误返回首页

chao 4 anni fa
parent
commit
3a9944481e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/main/resources/static/js/product/list.js

+ 3 - 1
src/main/resources/static/js/product/list.js

@@ -205,7 +205,9 @@ var productList = new Vue({
             } else if (this.params.bid && this.params.bid>0) {
                 this.getListByCategory("bigType", this.params.bid);
             } else {
-                alert("URL参数异常!");
+                alertInfo("URL参数异常!", function(){
+                    window.location.href = "/";
+                });
             }
             // 获取分类
             this.getCategorys();