From f16c91bc9b96c415b7129e3eccf29b5b9f93d7a3 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期三, 26 三月 2025 08:29:13 +0800 Subject: [PATCH] 工时查询修改, 样品搜索问题修复 --- src/plugins/download.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/plugins/download.js b/src/plugins/download.js index e5a7d57..17bcf96 100644 --- a/src/plugins/download.js +++ b/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); -- Gitblit v1.9.3