From 72a3925d0229eff7fb02145e1b5b96a8a4ff07ed 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 (cherry picked from commit e032b5fa517b25443c8ccadd5739a41acee77ae6) --- 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 3954f3f..efc35e7 100644 --- a/frontend/src/store/modules/app.js +++ b/frontend/src/store/modules/app.js @@ -39,8 +39,9 @@ const mutations = { document.addEventListener('paste', (e) => { Message.error(i18n.t('msg.copy_not_allowed')) e.preventDefault() + e.stopPropagation() navigator.clipboard.writeText('').then(r => {}) - }) + }, true) } } }