本机脚本,如何解决移动应用程序中导航的问题?

时间:2019-06-19 22:48:31

标签: nativescript

我有一个使用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
    },



];

1 个答案:

答案 0 :(得分:0)

尝试使用"markingMode": "none",如here所述。有一些缺点,但是导航应该感觉更简单