toTab method
Implementation
Future<void> toTab(int? index, [String pageKey = 'ipage']) async {
int tabno = 0;
if (index != null) tabno = index;
if (tabno != parser.currentTab) {
parser.currentTab = tabno;
//如此才能改变浏览器的url
route = await parser.parseRouteInformation(
RouteInformation(location: parser.histories[parser.currentTab].last));
//这个不能改变,但可正常显示内容
//notifyListeners();
}
}