Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc968dc

Browse files
committed
fix: Copy instruction judgment logic.
1 parent 56f6415 commit bc968dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/copy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function install(app: App) {
1515
return false
1616
}
1717

18-
if (permissionWrite.value !== 'granted') {
18+
if (permissionWrite.value === 'denied') {
1919
window.$message.error($t('components.copyText.unpermittedError'))
2020
return false
2121
}

0 commit comments

Comments
 (0)