Commit 7b7471da by mushishixian

修复搜索问题

parent e0393381
......@@ -82,10 +82,10 @@
value: 'brand_id',
},
filterMethod: function (val, item, index, prop) {
if (val === item.brand_name.toLowerCase()) {//把brand_name相同的搜索出来
if (val.toLowerCase() === item.brand_name.toLowerCase()) {//把brand_name相同的搜索出来
return true;
}
return item.brand_name.toLowerCase().indexOf(val) === 0;
return item.brand_name.toLowerCase().indexOf(val.toLowerCase()) === 0;
//不知道的就不管了
},
pageSize: 30,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment