fix(DocumentPreview): 优化标签页切换时组件重复渲染问题
重构 getFileSize 函数,将 Promise 封装改为 async/await 以提高可读性 为 DocumentPreview 组件添加 v-if 条件渲染,避免标签页切换时所有预览组件同时加载 统一 H5 和小程序环境的文件大小获取逻辑,移除条件编译指令
Showing
2 changed files
with
32 additions
and
35 deletions
-
Please register or login to post a comment