我有一个使用nativescript的应用程序,当您浏览时会有延迟。那么它的操作是正确的,但是随后在导航时会停止。
由于导航简单,我不知道延迟申请的原因
这是路由
const routes: Routes = [
{
path: "", redirectTo: "/login", pathMatch: "full",
},
{
path: "login", loadChildren: "./login/login.module#LoginModule"
// path: "login", component: LoginComponent,
},
{
path: "mesas", loadChildren: "./mesas/mesas.module#MesasModule"
// path: "mesas", component: MesasComponent,
},
{
// path: "home", loadChildren: "./home/home.module#HomeModule"
path: "home", component: HomeComponent,
},
{
path: "comanda", loadChildren: "./comanda/comanda.module#ComandaModule"
// path: "comanda", component: ComandaComponent,
},
{
// path: "subP-Mod", loadChildren: "./comanda/modificadores.module#ModificadoresModule"
path: "subP-Mod", component: ModificadoresComponent,
},
{
// path: "nOrden", loadChildren: "./orden/nueva.module#NuevaModule"
path: "nOrden", component: NOrdenComponent
},
{
// path: "meseros", loadChildren: "./meseros/meseros.module#MeserosModule"
path: "meseros", component: MeserosComponent
},
{
// path: "comensales", loadChildren: "./comensales/comensales.module#ComensalesModule"
path: "comensales", component: ComensalesComponent
},
{
//path: "prodlibre", loadChildren: "./productoLibre/prodlibre.module#ProdLModule"
path: "prodlibre", component: ProdLComponent
},
{
// path: "razonDet", loadChildren: "./razonesCancela/razonDetC.module#razonDetModule"
path: "razonDet", component: RazonesComponent
},
];