From d01295c254063b3349a86a4474e04a62b284bd19 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 24 三月 2026 16:26:07 +0800
Subject: [PATCH] 一些配置

---
 Code/WMS/WIDESEA_WMSClient/src/components/basic/VolUpload.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/components/basic/VolUpload.vue b/Code/WMS/WIDESEA_WMSClient/src/components/basic/VolUpload.vue
index 4c7d696..da2e9e3 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/components/basic/VolUpload.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/components/basic/VolUpload.vue
@@ -83,7 +83,11 @@
   </div>
 </template>
 <script>
-let OSS = require('ali-oss');
+import OSS from 'ali-oss';
+
+const uploadErrorImg = new URL('../../assets/imgs/error-img.png', import.meta.url)
+  .href;
+
 export default {
   components: {},
   props: {
@@ -213,7 +217,7 @@
   },
   data() {
     return {
-      errorImg: 'this.src="' + require('@/assets/imgs/error-img.png') + '"',
+      errorImg: `this.src="${uploadErrorImg}"`,
       changed: false, //鎵嬪姩涓婁紶鎴愬姛鍚庣姝㈤噸澶嶄笂浼狅紝蹇呴』閲嶆柊閫夋嫨
       model: true,
       files: [],

--
Gitblit v1.9.3