fix:处理控制台报错

This commit is contained in:
zhangyu
2022-03-10 16:55:49 +08:00
parent dfec693d0f
commit b0c23d1f03
2 changed files with 6 additions and 0 deletions

View File

@@ -612,6 +612,9 @@ export default {
resolve(data)
setTimeout(() => {
const title = this.tools.customTableTitle
if (!this.$refs.dataTable && !this.$refs.dataDetail) {
return
}
const tableTitle = this.$refs.dataTable ? this.$refs.dataTable.tableTitle : this.$refs.dataDetail.tableTitle
const originalTitle = title.slice(0, tableTitle.length) // 原title
const oldLabelTitle = title.slice(tableTitle.length, title.length) // 旧labelTitle