fluro路由传参时需要解析到地址上
static String mapToQuery (Map data){
String query = "";
if (data != null) {
int index = 0;
for (dynamic key in data.keys) {
dynamic value = Uri.encodeComponent(data[key]+"");
if (index == 0) {
query = "?";
} else {
query = query + "\&";
}
query += "$key=$value";
index++;
}
}
return query;
}