fix: 修复实体列表搜索框在清除内容后,切换模式内容还存在的问题

This commit is contained in:
刘洪洪
2023-07-12 11:46:37 +08:00
parent 5fcfdc4244
commit 607ab78fc1
2 changed files with 15 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ export default {
methods: {
cleanParams () {
toRaw(this.codeMirror).setValue('')
const routeQuery = this.$route.query
delete routeQuery.q
this.reloadUrl(routeQuery, 'cleanOldParams')
},
initCodeMirror () {
this.codeMirror = CodeMirror.fromTextArea(this.$refs.textSearch, {