CN-1281: 在Entity主页的基础搜索模式下输入中文/特殊字符后,点击搜索后文本转换有误

This commit is contained in:
刘洪洪
2023-09-14 18:17:52 +08:00
parent e2f7c19684
commit c09cfd82f0
3 changed files with 4 additions and 4 deletions

View File

@@ -609,7 +609,7 @@ export default {
let { q } = this.$route.query
if (q && !this.convertMetaList) {
const parser = new Parser(this.columnList)
if (q.indexOf('%20') > -1) {
if (q.indexOf('%') > -1) {
q = decodeURI(q)
}
this.metaList = parser.parseStr(q).metaList

View File

@@ -223,7 +223,7 @@ export default {
toRaw(this.codeMirror).setValue(this.str)
}
if (q) {
if (q.indexOf('%20') > -1) {
if (q.indexOf('%') > -1) {
q = decodeURI(q)
}
// 为避免地址栏任意输入导致全查询的q带QUERY解析时不识别导致的语法错误

View File

@@ -532,7 +532,7 @@ export default {
}
})
}).catch(e => {
// e
this.$message.error(e.response.data.message)
}).finally(() => {
this.loadingLeft = false
})
@@ -693,7 +693,7 @@ export default {
// 如果地址栏有listMode即列表页并非首页则开始搜索
if (listMode) {
this.showList = true
if (q && q.indexOf('%20') > -1) {
if (q && q.indexOf('%') > -1) {
q = decodeURI(q)
}
this.initSearch(q)