async 方法名() {
      for (let i = 0; i < this.mlList.length; i++) {
        for (let j = 0; j < this.mlList[i].child.length; j++) {
          const res = await postapplicationJson(
            {
              id: this.$route.params.id,
              catalogID: value,
              parentID: this.mlList[i].id,
              childID: this.mlList[i].child[j].id
            },
            '/goods/across/syncCatalogAndGoods'
          )
          if (res.code == 1001) {
            this.loading = false
            this.$set(this.mlList[i].child[j], 'msg', '克隆成功')
          } else {
            this.$set(this.mlList[i].child[j], 'msg', res.msg)
            this.loading = false
          }
        }
      }
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐