From 30f330f4a086b9b7f753e5f0b324f8e8d126fe17 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 30 Mar 2021 17:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfirefox=E4=B8=8B=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=9E=84=E5=BB=BA=E6=8B=96=E6=8B=BD=E4=BC=9A=E6=96=B0?= =?UTF-8?q?=E6=89=93=E5=8D=A1=E4=B8=80=E4=B8=AA=E9=80=89=E9=A1=B9=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/tool/build/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue index 4548012de..0281d18df 100644 --- a/ruoyi-ui/src/views/tool/build/index.vue +++ b/ruoyi-ui/src/views/tool/build/index.vue @@ -193,7 +193,12 @@ export default { activeData: drawingDefalut[0] } }, - computed: { + created() { + // 防止 firefox 下 拖拽 会新打卡一个选项卡 + document.body.ondrop = event => { + event.preventDefault() + event.stopPropagation() + } }, watch: { // eslint-disable-next-line func-names