Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzichu520 committed Jun 25, 2023
1 parent d435329 commit cd577c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FluApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ void FluApp::run(){

void FluApp::navigate(const QString& route,const QJsonObject& argument,FluRegister* fluRegister){
if(!routes().contains(route)){
qErrnoWarning("没有找到当前路由");
qFatal()<<"No route found "<<route;
return;
}
QQmlEngine *engine = qmlEngine(appWindow);
QQmlComponent component(engine, routes().value(route).toString());
if (component.isError()) {
qWarning() << component.errors();
qFatal() << component.errors();
return;
}
QVariantMap properties;
Expand Down

0 comments on commit cd577c5

Please sign in to comment.