src/views/build/conpanyFunctionConsult/standardSysTemp/sysStandardModule/index.vue
@@ -109,7 +109,9 @@ console.log('取消预览') }); return } }else if(ext === 'pdf'){ window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank'); }else{ try { // 1. 获取文件 const response = await fetch(import.meta.env.VITE_APP_BASE_API + '/' + path); @@ -139,6 +141,7 @@ alert(`预览失败: ${error.message}`); } } } const getList = async () => {