解决运行时因为star history table还没实例化而出现的错误

This commit is contained in:
haiyangcui
2020-12-23 14:27:53 +01:00
parent 38862f6ad8
commit 3c37b8286f
2 changed files with 2 additions and 0 deletions

View File

@@ -342,6 +342,7 @@ export default {
})
},
rowDrop () {
if (!document.getElementById('history-table')) return
const tbody = document.getElementById('history-table').querySelector('.el-table__body-wrapper tbody')
const _this = this
Sortable.create(tbody, {

View File

@@ -482,6 +482,7 @@ export default {
})
},
rowDrop () {
if (!document.getElementById('star-table')) return
const tbody = document.getElementById('star-table').querySelector('.el-table__body-wrapper tbody')
const _this = this
Sortable.create(tbody, {