ZZJ
2022-06-14 7cb4669c2f6eda51acd62624a146c1efb0d3a8c3
拖拽算法版本不匹配
2个文件已修改
30 ■■■■■ 已修改文件
src/views/hashrate/AlgManage/index.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
vue.config.js
@@ -14,8 +14,8 @@
    proxy: {
      "/api": {
        // target: "http://192.168.20.10:7004",
        target: "http://192.168.20.174:7070",
        // target: "http://192.168.20.235:7070",
        // target: "http://192.168.20.174:7070",
        target: "http://192.168.20.235:7070",
        //  target: "http://192.168.20.117:7080",
        // secure: false,
        changeOrigin: true,