Browse Source

Merge branch 'jiahao' into dev

danch 2 months ago
parent
commit
93acc55216
2 changed files with 3 additions and 2 deletions
  1. 1 1
      jeecgboot-vue3/.env
  2. 2 1
      jeecgboot-vue3/src/views/system/ossfile/index.vue

+ 1 - 1
jeecgboot-vue3/.env

@@ -17,6 +17,6 @@ VITE_GLOB_APP_OPEN_SSO = false
 VITE_GLOB_APP_OPEN_QIANKUN=true
 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) {
 function isPreviewSupported(url) {
   const imageExtensions = [
   const imageExtensions = [
     '.jpg', '.jpeg', '.png', '.gif',
     '.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();
   const urlLower = url.toLowerCase();
   return imageExtensions.some(ext => urlLower.endsWith(ext));
   return imageExtensions.some(ext => urlLower.endsWith(ext));