This commit is contained in:
朱子楚\zhuzi
2023-06-25 23:17:44 +08:00
parent e1096b8e22
commit 059a1b17cc
9 changed files with 130 additions and 25 deletions

View File

@ -38,13 +38,13 @@ void FluApp::run(){
void FluApp::navigate(const QString& route,const QJsonObject& argument,FluRegister* fluRegister){
if(!routes().contains(route)){
qFatal()<<"No route found "<<route;
qCritical()<<"No route found "<<route;
return;
}
QQmlEngine *engine = qmlEngine(appWindow);
QQmlComponent component(engine, routes().value(route).toString());
if (component.isError()) {
qFatal() << component.errors();
qCritical() << component.errors();
return;
}
QVariantMap properties;