From 694897c47038ea8abb1dc21bc8fb620f5b4424d4 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 09 二月 2026 14:32:31 +0800
Subject: [PATCH] 公司 1.商机管理附件删除修改 2.商机管理添加新状态 3.商机管理添加行业、信息化现状、主营业务收入等字段

---
 src/components/filePreview/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/components/filePreview/index.vue b/src/components/filePreview/index.vue
index 7221b25..cda5b56 100644
--- a/src/components/filePreview/index.vue
+++ b/src/components/filePreview/index.vue
@@ -88,6 +88,7 @@
 });
 
 const isPdf = computed(() => {
+  console.log(fileUrl.value)
   return /\.pdf$/i.test(fileUrl.value);
 });
 
@@ -163,7 +164,7 @@
 };
 
 const open = (url) => {
-  fileUrl.value = javaApi + url;
+  fileUrl.value = window.location.protocol+'//'+window.location.host+ url;
   dialogVisible.value = true;
 };
 const handleClose = () => {

--
Gitblit v1.9.3