mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-01-23 04:14:35 +08:00
update
This commit is contained in:
parent
d43532986a
commit
cd577c5599
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user