笔记

    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
        }
      });
    },
原文地址:https://www.cnblogs.com/ylblogs/p/12758973.html