gaoluyang
2025-05-19 8696053dc15ef7c818cc6012fa02271b83c6c8f7
src/plugins/download.js
@@ -89,7 +89,13 @@
        if (state) {
          url1 = Vue.prototype.javaApi + '/img/' + text;
        } else {
          url1 = Vue.prototype.javaApi + '/word/' + text
          if (text.startsWith("/word/")) {
            url1 = Vue.prototype.javaApi + text
          } else if (text.startsWith("word/")) {
            url1 = Vue.prototype.javaApi + '/' + text
          } else {
            url1 = Vue.prototype.javaApi + '/word/' + text
          }
        }
        // 使用 fetch 获取文件
        const response = await fetch(url1);