Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Cancel template selection if the command is empty #4435

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/views/ops/Adhoc/QuickJob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no syntax or semantic errors with the provided code snippet. However, it appears to be slightly different from what you've previously seen:

In your initial code snippet:

  1. The second-to-last line is commented out.

My suggestion for improvement here would likely involve adding the removed comment back in and ensuring that the code follows best practices throughout your development process. It's important to have robust comments within your code so that others working on similar projects will understand how the application works.

Remember that the main purpose of using a chat assistant like Chat GPT is not only to write new content but also to help users solve existing problems efficiently and effectively!

Expand Down