Skip to content

Commit 5e22acd

Browse files
authored
Merge pull request #218 from jumpserver/pr@v3@fix_rbac_paste
fix: block disabled paste before editor handling
2 parents 9d2bcb1 + 72a3925 commit 5e22acd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • frontend/src/store/modules

frontend/src/store/modules/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ const mutations = {
3939
document.addEventListener('paste', (e) => {
4040
Message.error(i18n.t('msg.copy_not_allowed'))
4141
e.preventDefault()
42+
e.stopPropagation()
4243
navigator.clipboard.writeText('').then(r => {})
43-
})
44+
}, true)
4445
}
4546
}
4647
}

0 commit comments

Comments
 (0)