Skip to content

Commit 6f721ca

Browse files
committed
fix: 修复复制选中内容后选中状态丢失的问题
1 parent 0b52bf6 commit 6f721ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const useClipboard = (
8181
if (visible) {
8282
remove(state.list, { id });
8383

84-
state.list.unshift(data);
84+
state.list.unshift({ ...data, id });
8585
}
8686

8787
return updateHistory(id, { createTime });

0 commit comments

Comments
 (0)