优化图纸预览和编辑功能

This commit is contained in:
wangqiao
2025-09-13 11:50:44 +08:00
parent 164690bcce
commit ad61430545
4 changed files with 62 additions and 10 deletions

View File

@ -323,7 +323,7 @@
// 判断是否是图片
const handelFileType = (fileName: string) => {
const ext = fileName.split('.').pop()?.toLowerCase() || ''
const ext = fileName?.split('.').pop()?.toLowerCase() || ''
return ['png', 'jpg', 'jpeg'].includes(ext)
}
</script>