每当我重定向到任何页面时,我都会像闪光灯一样显示白屏并显示实际页面。此问题仅在IOS中发生,而在Android中不发生。
这是我的打包文件**package.json**
"dependencies": {
"@angular/animations": "~8.2.0",
"@angular/common": "~8.2.0",
"@angular/compiler": "~8.2.0",
"@angular/core": "~8.2.0",
"@angular/forms": "~8.2.0",
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"@nstudio/nativescript-cardview": "^1.0.0",
"@nstudio/nativescript-loading-indicator": "^1.0.0",
"@nstudio/nativescript-pulltorefresh": "^1.0.1",
"@nstudio/nativescript-snackbar": "~1.0.0",
"nativescript-angular": "~8.2.0",
"nativescript-appversion": "^1.4.4",
"nativescript-datetimepicker": "^1.2.3",
"nativescript-exit": "^1.0.1",
"nativescript-fancyalert": "^3.0.8",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-mediafilepicker": "^2.0.16",
"nativescript-plugin-firebase": "^10.3.3",
"nativescript-sqlite": "^2.3.3",
"nativescript-theme-core": "~1.0.6",
"nativescript-toasts": "^1.0.3",
"nativescript-ui-calendar": "5.0.0",
"nativescript-ui-sidedrawer": "~7.0.0",
"nativescript-videoplayer": "^4.2.1",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"rxjs-compat": "^6.4.0",
"tns-core-modules": "~6.1.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular/compiler-cli": "8.2.0",
"@ngtools/webpack": "8.2.0",
"codelyzer": "~4.5.0",
"nativescript-dev-webpack": "^1.4.1",
"node-sass": "^4.7.1",
"tslint": "~5.19.0",
"typescript": "~3.5.3"
}
在此文件中,我有页面路由器出口app.component.html
<page-router-outlet tkMainContent class=""></page-router-outlet>
这是我用来重定向到页面的逻辑
let navigationExtras: NavigationExtras = {
queryParams: {
"tabIndex": 3
}
}
this.routerExtensions.navigate(["home"], navigationExtras);
我要附上我的问题录像
https://www.awesomescreenshot.com/video/1431694?key=987073d970d7d24ced6dca1dd5226f5f
任何人都可以帮助我解决此问题。