fix: 修复登录超时重新登录后参数拼接错误导致查询报错
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user