search

Home  >  Q&A  >  body text

javascript - .vue page jump problem

phpcn_u1582phpcn_u15822725 days ago662

reply all(2)I'll reply

  • 漂亮男人

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

    Is router defined?

    reply
    0
  • 代言

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

    Need to configure routing

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

    reply
    0
  • Cancelreply