Commit 2ebd8eb6 by 李伟康

commit 清空控制台错误

1 parent 60523814
...@@ -821,7 +821,7 @@ export default { ...@@ -821,7 +821,7 @@ export default {
//清空画板 //清空画板
clearBoard () { clearBoard () {
this.historyList = []; this.historyList = [];
this.drawContext.draw() this.drawContext?.draw()
}, },
async initBoard () { async initBoard () {
......
...@@ -97,8 +97,8 @@ export default { ...@@ -97,8 +97,8 @@ export default {
this.$emit('select', item) this.$emit('select', item)
}, },
close () { close () {
this.$refs.carBoxVisible.close(); this.$refs?.carBoxVisible?.close();
this.$refs.carBrandListVisible.close() this.$refs?.carBrandListVisible?.close()
} }
} }
} }
......
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
}, },
handleSelect (item) { handleSelect (item) {
this.$refs.employeeBoxVisible.close(); this.close();
this.$emit('select', item) this.$emit('select', item)
}, },
close(){ close(){
this.$refs.employeeBoxVisible.close() this.$refs?.employeeBoxVisible?.close()
} }
} }
} }
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
handler (newval) { handler (newval) {
this.receptionStatus = -1 this.receptionStatus = -1
this.errorTip = false this.errorTip = false
this.$refs.formRef.close() this.$refs?.formRef?.close()
} }
}, },
}, },
......
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
this.$refs.tabs.tabClick(0) this.$refs?.tabs?.tabClick(0)
} }
}, },
}, },
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
this.$refs.tabs.tabClick(0) this.$refs?.tabs?.tabClick(0)
} }
}, },
}, },
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler (newval) { 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!