From 3c6566a26c6bb6f68deed9f2c8e7b6eab1209134 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期五, 28 八月 2026 15:42:42 +0800
Subject: [PATCH] feat(order): 添加产品检验项选择功能并增加导入导出功能 - 实现产品检验项的选择状态管理和计数显示功能 - 添加标准物质和设备管理模块的导入导出功能 - 新增导入模板下载和上传验证机制 - 调整表单验证规则,移除生产单位必填限制

---
 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