Commit 2d88577467aef9d3fddbe8c7cb796bb39bbba2f8

Authored by yvan.ni
1 parent ae7abb00

indexOf 要判断是不是空

components/diy_notice/g_filter.wxs
1 1 var g_filters = {
2 2 has_char:function(url,key){
3   - return url.indexOf(key);
  3 + if(!url) return -1;
  4 + return url.indexOf(key);
4 5 }
5 6 }
6 7 module.exports = {
... ...