This commit is contained in:
zhuzichu 2023-06-25 11:44:13 +08:00
parent d43532986a
commit cd577c5599

View File

@ -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;