瀏覽代碼

Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue

 Conflicts:
	ruoyi-ui/src/views/tool/build/index.vue
疯狂的狮子li 4 年之前
父節點
當前提交
b16fe5e263
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      ruoyi-ui/src/views/tool/build/index.vue

+ 6 - 1
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