消除复制路径未处理拒绝
复制失败仅保留界面错误状态
This commit is contained in:
@@ -18,9 +18,8 @@ export function UiEditorCopyPathButton({
|
||||
try {
|
||||
await writeText(relativePath);
|
||||
setCopyState('copied');
|
||||
} catch (error) {
|
||||
} catch {
|
||||
setCopyState('failed');
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user