refactor: 优化剪贴板文件添加提示信息
- 将特定的文件添加提示信息从 "已从剪贴板添加图片" 修改为 "已从剪贴板添加文件",以支持所有文件类型 - 保留了错误提示信息 "文件处理失败",未作修改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user