Commit 2ebd8eb6 by 李伟康

commit 清空控制台错误

1 parent 60523814
......@@ -821,7 +821,7 @@ export default {
//清空画板
clearBoard () {
this.historyList = [];
this.drawContext.draw()
this.drawContext?.draw()
},
async initBoard () {
......
......@@ -97,8 +97,8 @@ export default {
this.$emit('select', item)
},
close () {
this.$refs.carBoxVisible.close();
this.$refs.carBrandListVisible.close()
this.$refs?.carBoxVisible?.close();
this.$refs?.carBrandListVisible?.close()
}
}
}
......
......@@ -53,11 +53,11 @@ export default {
this.$refs.employeeBoxVisible.open()
},
handleSelect (item) {
this.$refs.employeeBoxVisible.close();
this.close();
this.$emit('select', item)
},
close(){
this.$refs.employeeBoxVisible.close()
this.$refs?.employeeBoxVisible?.close()
}
}
}
......
......@@ -174,7 +174,7 @@ export default {
handler (newval) {
this.receptionStatus = -1
this.errorTip = false
this.$refs.formRef.close()
this.$refs?.formRef?.close()
}
},
},
......
......@@ -51,7 +51,7 @@ export default {
watchStatus: {
immediate: true,
handler (newval) {
this.$refs.tabs.tabClick(0)
this.$refs?.tabs?.tabClick(0)
}
},
},
......
......@@ -53,7 +53,7 @@ export default {
watchStatus: {
immediate: true,
handler (newval) {
this.$refs.tabs.tabClick(0)
this.$refs?.tabs?.tabClick(0)
}
},
},
......
......@@ -121,7 +121,7 @@ export default {
watchStatus: {
immediate: true,
handler (newval) {
this.$refs.tabs.tabClick(0)
this.$refs?.tabs?.tabClick(0)
}
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!