fix: dont use delete in computed
This commit is contained in:
parent
17c08ecd44
commit
9e0892778c
@ -115,7 +115,8 @@ function copyToClipboard(notif: WebNotification): void {
|
||||
navigator.clipboard.writeText(text)
|
||||
|
||||
setTimeout(() => {
|
||||
delete copied.value[text]
|
||||
const { [text]: _, ...rest } = copied.value
|
||||
copied.value = rest
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user