ZZJ
2022-06-14 7cb4669c2f6eda51acd62624a146c1efb0d3a8c3
src/views/hashrate/AlgManage/index.vue
@@ -20,7 +20,7 @@
      <div class="label freeLabel">
        免费算法 <span class="des">从此处拖拽算法图标安装到设备</span>
      </div>
      <div class="freeList">
      <div class="freeList scroll">
        <div
          class="algCard"
          v-for="(item, index) in freeAlg"
@@ -210,17 +210,21 @@
        sdk_name: this.dragAlg.productName,
      });
      const res = await downloadOrUpgrade({
        nodeId: devId,
        path: this.dragAlg.productBaseId,
        userId: JSON.parse(sessionStorage.getItem("userInfo")).id,
        inputText: this.dragAlg.productName,
      });
      if (res && res.success) {
        this.$notify({
          type: "success",
          message: "操作成功,请稍后",
      try {
        const res = await downloadOrUpgrade({
          nodeId: devId,
          path: this.dragAlg.productBaseId,
          userId: JSON.parse(sessionStorage.getItem("userInfo")).id,
          inputText: this.dragAlg.productName,
        });
        if (res && res.success) {
          this.$notify({
            type: "success",
            message: "操作成功,请稍后",
          });
        }
      } catch (err) {
        algArr.pop();
      }
      this.dragAlg = null;