refactor: 优化剪贴板文件添加提示信息

- 将特定的文件添加提示信息从 "已从剪贴板添加图片" 修改为 "已从剪贴板添加文件",以支持所有文件类型
- 保留了错误提示信息 "文件处理失败",未作修改
This commit is contained in:
唐杰
2025-04-24 15:33:40 +08:00
parent ffdd9df150
commit fe41f5d940
+1 -1
View File
@@ -653,7 +653,7 @@ const handlePaste = async (event: ClipboardEvent) => {
try {
fileHash.value = await calculateFileHash(file)
alertStore.showAlert('已从剪贴板添加图片' + file.name, 'success')
alertStore.showAlert('已从剪贴板添加文件' + file.name, 'success')
} catch (error) {
alertStore.showAlert('文件处理失败', 'error')
console.error('File hash calculation failed:', error)