Javascript – .vue-Seitensprungproblem
phpcn_u1582
phpcn_u1582 2017-06-20 10:06:56
0
2
661

phpcn_u1582
phpcn_u1582

Antworte allen(2)
漂亮男人

router定义了吗

代言

需要配置路由

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);
        }
      }
    }
  }
}
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage