Prechádzať zdrojové kódy

Merge branch 'jiahao' into dev

danch 2 mesiacov pred
rodič
commit
93acc55216

+ 1 - 1
jeecgboot-vue3/.env

@@ -17,6 +17,6 @@ VITE_GLOB_APP_OPEN_SSO = false
 VITE_GLOB_APP_OPEN_QIANKUN=true
 
 # 文件预览地址
-VITE_GLOB_ONLINE_VIEW_URL=http://fileview.jeecg.com/onlinePreview
+VITE_GLOB_ONLINE_VIEW_URL=http://10.200.1.115:8012//onlinePreview
 
 

+ 2 - 1
jeecgboot-vue3/src/views/system/ossfile/index.vue

@@ -273,7 +273,8 @@ function handleAddOnes() {
 function isPreviewSupported(url) {
   const imageExtensions = [
     '.jpg', '.jpeg', '.png', '.gif',
-    '.bmp', '.tiff', '.webp', '.svg', '.ico'
+    '.bmp', '.tiff', '.webp', '.svg', '.ico',
+    '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.pdf'
   ];
   const urlLower = url.toLowerCase();
   return imageExtensions.some(ext => urlLower.endsWith(ext));