gaoluyang
2025-04-12 454c1f927a0e8c10757521590483bf49cf9b7b21
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);