liding
2 天以前 0108bdd2a028858d988dcc7d7d2cff75db10cfbf
fix(download): 修复文件下载路径拼接问题
已修改2个文件
8 ■■■■■ 文件已修改
src/views/business/inspectionTask/inspection.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/inspectionView/index.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/inspectionTask/inspection.vue
@@ -2239,7 +2239,9 @@
    },
    handleDown(row) {
      downFile({ id: row.id }).then((res) => {
        this.$download.saveAs(res.data.fileUrl, row.fileName)
        const resourcePath = Number(res.data.type) === 1 ? "/img/" : "/word/";
        const fileUrl = this.javaApi + resourcePath + encodeURIComponent(res.data.fileUrl);
        this.$download.saveAs(fileUrl, row.fileName);
      })
        .catch((error) => { });
    },
src/views/business/inspectionView/index.vue
@@ -2467,7 +2467,9 @@
    },
    handleDown(row) {
      downFile({ id: row.id }).then((res) => {
        this.$download.saveAs(res.data.fileUrl, row.fileName)
        const resourcePath = Number(res.data.type) === 1 ? "/img/" : "/word/";
        const fileUrl = this.javaApi + resourcePath + encodeURIComponent(res.data.fileUrl);
        this.$download.saveAs(fileUrl, row.fileName);
      })
        .catch((error) => { });
    },