BHRouter 调用`canOpenURL` 时,使用`URL.pathComponents`获得的`pathComponents`会存在`/`,直接导致校验`pathComponentKey`是否为Class时,提前退出。 判断代码,当`pathComponentKey`为`/`会报错。 ``` Class mClass = NSClassFromString(pathComponentKey); if (!mClass) { flag = NO; *stop = NO; return; } ``` 建议添加一行过滤代码 ``` if ([pathComponentKey isEqualToString:@"/"]) { return; } ```
BHRouter 调用
canOpenURL时,使用URL.pathComponents获得的pathComponents会存在/,直接导致校验pathComponentKey是否为Class时,提前退出。判断代码,当
pathComponentKey为/会报错。建议添加一行过滤代码