CN-1265 fix: 实体搜索修复模糊查询转换模式丢失单引号,以及未搜索时转换模式参数丢失等问题

This commit is contained in:
刘洪洪
2023-09-07 17:10:52 +08:00
parent c4014a9124
commit b25d1d4619
4 changed files with 47 additions and 17 deletions

View File

@@ -219,6 +219,9 @@ export default {
// 如果地址栏包含参数q则将参数q回显到搜索栏内
let { q } = this.$route.query
this.initCodeMirror()
if (this.str) {
toRaw(this.codeMirror).setValue(this.str)
}
if (q) {
if (q.indexOf('%20') > -1) {
q = decodeURI(q)