From e032b5fa517b25443c8ccadd5739a41acee77ae6 Mon Sep 17 00:00:00 2001 From: "Crane.z" <1481445951@qq.com> Date: Tue, 4 Aug 2026 14:26:31 +0800 Subject: [PATCH] fix: block disabled paste before editor handling --- frontend/src/store/modules/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/store/modules/app.js b/frontend/src/store/modules/app.js index c72cc4e..7c51499 100644 --- a/frontend/src/store/modules/app.js +++ b/frontend/src/store/modules/app.js @@ -40,8 +40,9 @@ const mutations = { document.addEventListener('paste', (e) => { Message.error(i18n.t('PasteNotAllowed')) e.preventDefault() + e.stopPropagation() navigator.clipboard.writeText('').then(r => {}) - }) + }, true) } }, SET_I18N_LOADED: (state, loaded) => {