CN-1281: 在Entity主页的基础搜索模式下输入中文/特殊字符后,点击搜索后文本转换有误
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,解析时不识别导致的语法错误
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user