-1

2个回答

0

已采纳

router定义了吗

0

需要配置路由

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);
        }
      }
    }
  }
}

撰写答案