mirror of
https://github.com/vastsa/FileCodeBoxFronted.git
synced 2026-11-24 21:58:01 +08:00
refactor: 优化剪贴板文件添加提示信息
- 将特定的文件添加提示信息从 "已从剪贴板添加图片" 修改为 "已从剪贴板添加文件",以支持所有文件类型 - 保留了错误提示信息 "文件处理失败",未作修改
This commit is contained in:
1 parent
ffdd9df150
commit
fe41f5d940
1 file changed
+1
-1
@@ -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