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

@@ -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)