suchen

Heim  >  Fragen und Antworten  >  Hauptteil

Javascript – .vue-Seitensprungproblem

phpcn_u1582phpcn_u15822774 Tage vor712

Antworte allen(2)Ich werde antworten

  • 漂亮男人

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

    router定义了吗

    Antwort
    0
  • 代言

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

    需要配置路由

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

    Antwort
    0
  • StornierenAntwort