mounted () {
const _this = this
var elementNode = ''
var dropBox = document.getElementsByTagName('body')[0]
dropBox.addEventListener('drop', this.enentDrop, false)
dropBox.addEventListener('dragleave', function (e) {
e.stopPropagation()
e.preventDefault()
if (elementNode === e.target) {
_this.showModal = false
_this.borderhover = false
}
// _this.$loading().close()
}, false)
dropBox.addEventListener('dragenter', function (e) {
elementNode = e.target
e.stopPropagation()
e.preventDefault()
_this.showModal = true
_this.borderhover = true
}, false)
dropBox.addEventListener('dragover', function (e) {
e.stopPropagation()
e.preventDefault()
_this.borderhover = true
}, false)
}