常用方法

 filterTree(data, id) {
      //递归删除指定项
      let newData = data.filter((x) => x.specificationsID !== id)
      newData.forEach(
        (x) => x.children && (x.children = this.filterTree(x.children, id))
      )
      return newData
    },