修复firefox下表单构建拖拽会新打卡一个选项卡

This commit is contained in:
RuoYi 2021-03-30 17:45:35 +08:00
parent 6ca7870393
commit 30f330f4a0
1 changed files with 6 additions and 1 deletions

View File

@ -193,7 +193,12 @@ export default {
activeData: drawingDefalut[0] activeData: drawingDefalut[0]
} }
}, },
computed: { created() {
// firefox
document.body.ondrop = event => {
event.preventDefault()
event.stopPropagation()
}
}, },
watch: { watch: {
// eslint-disable-next-line func-names // eslint-disable-next-line func-names