消除复制路径未处理拒绝

复制失败仅保留界面错误状态
This commit is contained in:
2026-09-18 16:31:04 +08:00
parent 08c3b89b67
commit abd95a6231
@@ -18,9 +18,8 @@ export function UiEditorCopyPathButton({
try {
await writeText(relativePath);
setCopyState('copied');
} catch (error) {
} catch {
setCopyState('failed');
throw error;
}
}