fix: 修复登录超时重新登录后参数拼接错误导致查询报错

This commit is contained in:
刘洪洪
2023-08-04 17:42:18 +08:00
parent 0cab5d42b1
commit 74fd9ee6d4
3 changed files with 6 additions and 0 deletions

View File

@@ -364,6 +364,8 @@ export default {
let url = ''
if (this.queryCondition.indexOf(' OR ') > -1) {
condition = this.queryCondition.split(/["|'](.*?)["|']/)
} else if (this.queryCondition.indexOf('+OR+') > -1) {
condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/)
} else {
condition = this.queryCondition
}

View File

@@ -115,6 +115,8 @@ export default {
let url = ''
if (this.queryCondition && this.queryCondition.indexOf(' OR ') > -1) {
condition = this.queryCondition.split(/["|'](.*?)["|']/)
} else if (this.queryCondition.indexOf('+OR+') > -1) {
condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/)
} else {
condition = this.queryCondition
}

View File

@@ -116,6 +116,8 @@ export default {
if (this.queryCondition.indexOf(' OR ') > -1) {
condition = this.queryCondition.split(/["|'](.*?)["|']/)
} else if (this.queryCondition.indexOf('+OR+') > -1) {
condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/)
} else {
condition = this.queryCondition
}