cari

Rumah  >  Soal Jawab  >  teks badan

javascript - masalah lompat halaman .vue

phpcn_u1582phpcn_u15822725 hari yang lalu665

membalas semua(2)saya akan balas

  • 漂亮男人

    漂亮男人2017-06-20 10:08:56

    Adakah penghala ditakrifkan?

    balas
    0
  • 代言

    代言2017-06-20 10:08:56

    Perlu mengkonfigurasi penghalaan

    router.map({
      '/appinfo': {
        component: function(resolve) {
          require(['./pages/Appinfo.vue'], resolve);
        }
      },
      '/interface': {
        component: function(resolve) {
          require(['./pages/Interface.vue'], resolve);
        },
        subRoutes: {
          // 接口配置
          '/setting': {
            component: function(resolve) {
              require(['./pages/InterfaceSetting.vue'], resolve);
            }
          },
          // 异常监控
          '/exception': {
            component: function(resolve) {
              require(['./pages/InterfaceException.vue'], resolve);
            }
          }
        }
      }
    }

    balas
    0
  • Batalbalas