src/views/build/conpanyFunctionConsult/digitalFileDep/manageType/appFile/index.vue
@@ -99,6 +99,12 @@ }) const openFile = async(path)=>{ const ext = path.split('.').pop().toLowerCase(); if (ext === 'doc') { alert('暂不支持.doc文件预览,请下载后打开'); window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank'); return } try { // 1. 获取文件 const response = await fetch(import.meta.env.VITE_APP_BASE_API + '/' + path);