Explorar o código

列表错误返回首页

chao %!s(int64=4) %!d(string=hai) anos
pai
achega
3a9944481e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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();