mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 20:17:54 +00:00
perf: Cancel template selection if the command is empty
This commit is contained in:
@@ -323,6 +323,13 @@ export default {
|
||||
return this.$refs.TreeTable.$refs.TreeList.$refs.AutoDataZTree.$refs.AutoDataZTree.$refs.dataztree.$refs.ztree
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
command(iNew, iOld) {
|
||||
if (iNew === '') {
|
||||
this.variableFormData = []
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.enableWS()
|
||||
this.initData()
|
||||
|
Reference in New Issue
Block a user