笔记

    getallProductList(arry) {
      //地址添加全部
      let param = {
        type: "",
        name: "全部"
      };
      arry.unshift(param);
      return arry;
    },
    getAllProduct() {
      this.axios.get("/h5/template/product/find/all").then(res => {
        if (res.data.code == 200) {
          let datas = res.data.data;
          this.getallProductList(datas);
          this.allProductList = datas
        }
      });
    },
posted @ 2020-04-23 10:22  小小小小小前端  阅读(87)  评论(0编辑  收藏  举报