Commit 30f330f4 authored by RuoYi's avatar RuoYi

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

parent 6ca78703
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment