修复路由传参的值传送到jinput框被前后各截取了一位

pull/1336/head
wcdsdy 2020-06-13 17:30:38 +08:00
parent dadf6a78a1
commit 32ee9f040c
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@
let text = this.value
switch (this.type) {
case JINPUT_QUERY_LIKE:
text = text.substring(1,text.length-1);
//修复路由传参的值传送到jinput框被前后各截取了一位
if(text.indexOf("*") != -1){
text = text.substring(1,text.length-1);
}
break;
case JINPUT_QUERY_NE:
text = text.substring(1);