webpackJsonp([7],{

/***/ 128:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_request__ = __webpack_require__(49);
/**
 * Created by suntao on 2020/2/9.
 */


/* harmony default export */ __webpack_exports__["a"] = ({
  getTokens(name, pass) {
    return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_request__["a" /* default */])({
      url: 'login',
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      params: {
        username: name,
        password: pass
      }
    });
  }
});

/***/ }),

/***/ 129:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = getUserLoginInfo;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_request__ = __webpack_require__(49);


function getUserLoginInfo(token) {
  console.log("getUserLoginInfo");
  return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_request__["a" /* default */])({
    url: 'login/user/info',
    method: 'get',
    params: { token }
  });
}

/***/ }),

/***/ 130:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__store__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue_router__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_element_ui__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css__ = __webpack_require__(81);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_element_ui_lib_theme_default_index_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__css_common_css__ = __webpack_require__(82);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__css_common_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__css_common_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__css_iconfont_css__ = __webpack_require__(83);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__css_iconfont_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__css_iconfont_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config_routes__ = __webpack_require__(79);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__App__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__App___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__App__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modules_code_splitting_demo__ = __webpack_require__(80);
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.












__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */]); //路由注册
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_3_element_ui___default.a); //UI框架注册

const router = new __WEBPACK_IMPORTED_MODULE_2_vue_router__["a" /* default */]({
  routes: __WEBPACK_IMPORTED_MODULE_7__config_routes__["a" /* default */]
});

router.beforeEach(({ meta, path }, from, next) => {
  let { auth = true } = meta;
  let isLogin = Boolean(__WEBPACK_IMPORTED_MODULE_1__store__["a" /* default */].state.login.tokens != ''); //true用户已登录， false用户未登录

  if (auth && !isLogin && path !== '/login') {
    return next({ path: '/login' });
  }

  if (isLogin && (path == '/login' || path == '/')) {
    //已登录过，则跳转到主页
    __WEBPACK_IMPORTED_MODULE_1__store__["a" /* default */].dispatch('GetInfo');
    return next({ path: '/home/channels' });
  }

  next();
});

//mock.start() //启动ajax mock服务

__WEBPACK_IMPORTED_MODULE_9__modules_code_splitting_demo__["a" /* default */].start(); //demo：运行webpack2 code splitting示例

new __WEBPACK_IMPORTED_MODULE_0_vue___default.a({
  el: '#app',
  router,
  store: __WEBPACK_IMPORTED_MODULE_1__store__["a" /* default */],
  render: h => h(__WEBPACK_IMPORTED_MODULE_8__App___default.a)
});

/***/ }),

/***/ 131:
/***/ (function(module, exports) {

/**
 * Created by suntao on 2020/2/7.
 */

/***/ }),

/***/ 132:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
const getters = {
  tokens: state => state.login.tokens,
  username: state => state.login.username
};
/* harmony default export */ __webpack_exports__["a"] = (getters);

/***/ }),

/***/ 133:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mutation_types__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__apis_tokens__ = __webpack_require__(128);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__apis_user__ = __webpack_require__(129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_auth__ = __webpack_require__(137);
/**
 * Created by suntao on 2020/2/7.
 */





const login = {
  state: {
    tokens: '',
    username: '',
    roles: []
  },
  mutations: {
    [__WEBPACK_IMPORTED_MODULE_0__mutation_types__["a" /* LOGIN_IN */]](state, data) {
      if (data) {
        console.log(data);
        state.tokens = data.toke;
        state.username = data.username;
      }
    },
    [__WEBPACK_IMPORTED_MODULE_0__mutation_types__["b" /* LOGIN_OUT */]](state) {
      state.tokens = '';
    },
    SET_USER_INFO: (state, data) => {
      if (data) {
        state.tokens = data.toke;
        state.username = data.username;
      }
    }
  },
  actions: {
    login({ commit, state }, user) {
      // tokens.getTokens(user.name, user.pass).then((data) => {
      __WEBPACK_IMPORTED_MODULE_1__apis_tokens__["a" /* default */].getTokens(user.username, user.password).then(data => {
        //success
        commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["a" /* LOGIN_IN */], data.data);
        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils_auth__["a" /* setToken */])(data.data.toke);
      }, error => {
        //fail
        commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["a" /* LOGIN_IN */], '');
        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils_auth__["b" /* removeToken */])();
      });
    },
    // 获取用户信息
    GetInfo({ commit, state }) {
      return new Promise((resolve, reject) => {
        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__apis_user__["a" /* getUserLoginInfo */])(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils_auth__["c" /* getToken */])()).then(response => {
          const data = response.data;
          // data.roles = data.rank.indexOf('CHANNEL') !== -1 ? ['channel'] : ['operator']
          // if (data.roleInfo.roleInfos && data.roleInfo.roleInfos[0] && data.roleInfo.roleInfos[0].roleId === 1) {
          //   data.roles.push('admin')
          // }
          // if (data.roles && data.roles.length > 0) {
          //   // commit('SET_ROLES', data.roles)
          // } else {
          //   reject('getInfo: roles must be a non-null array !')
          // }
          commit('SET_USER_INFO', data);
          resolve(response);
        }).catch(error => {
          reject(error);
        });
      });
    },
    logout({ commit }) {
      console.log("logoput");
      commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["b" /* LOGIN_OUT */]);
      __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils_auth__["b" /* removeToken */])();
    }
  }

  //export
};/* harmony default export */ __webpack_exports__["a"] = (login);

/***/ }),

/***/ 134:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mutation_types__ = __webpack_require__(19);
/**
 * Created by suntao on 2020/2/7.
 */


// initial state
const state = {
  isFold: false

  // getters
};const getters = {
  menuIsFold: state => state.isFold

  //actions
};const actions = {
  toggleMenu({ commit }) {
    commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["d" /* TOGGLE_MAIN_MENU */]);
  }
};

//mutations
const mutations = {
  [__WEBPACK_IMPORTED_MODULE_0__mutation_types__["d" /* TOGGLE_MAIN_MENU */]](state) {
    state.isFold = !state.isFold;
  }
};

//export
/* harmony default export */ __webpack_exports__["a"] = ({
  state,
  getters,
  actions,
  mutations
});

/***/ }),

/***/ 135:
/***/ (function(module, exports) {

/**
 * Created by suntao on 2020/2/7.
 */

/***/ }),

/***/ 136:
/***/ (function(module, exports) {

/**
 * Created by suntao on 2020/2/8.
 */

/***/ }),

/***/ 137:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (immutable) */ __webpack_exports__["c"] = getToken;
/* harmony export (immutable) */ __webpack_exports__["a"] = setToken;
/* harmony export (immutable) */ __webpack_exports__["b"] = removeToken;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_js_cookie__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_js_cookie___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_js_cookie__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__store_mutation_types__ = __webpack_require__(19);




function getToken() {
  return __WEBPACK_IMPORTED_MODULE_0_js_cookie___default.a.get(__WEBPACK_IMPORTED_MODULE_1__store_mutation_types__["c" /* SESSION_ID_KEY */]);
}

function setToken(token) {
  return __WEBPACK_IMPORTED_MODULE_0_js_cookie___default.a.set(__WEBPACK_IMPORTED_MODULE_1__store_mutation_types__["c" /* SESSION_ID_KEY */], token, { expires: 7, path: '' });
}

function removeToken() {
  return __WEBPACK_IMPORTED_MODULE_0_js_cookie___default.a.remove(__WEBPACK_IMPORTED_MODULE_1__store_mutation_types__["c" /* SESSION_ID_KEY */]);
}

/***/ }),

/***/ 138:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_element_ui__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_element_ui__);


let loadingCount = 0;
let loading;

const startLoading = () => {
  loading = __WEBPACK_IMPORTED_MODULE_0_element_ui__["Loading"].service({
    fullscreen: true,
    lock: true,
    text: '加载中...',
    spinner: 'el-icon-loading',
    background: 'rgba(184,184,184,0.79)'
  });
};

const endLoading = () => {
  loading.close();
};

const showLoading = () => {
  if (loadingCount === 0) {
    startLoading();
  }
  loadingCount += 1;
};
/* harmony export (immutable) */ __webpack_exports__["a"] = showLoading;


const hideLoading = () => {
  if (loadingCount <= 0) {
    return;
  }
  loadingCount -= 1;
  if (loadingCount === 0) {
    endLoading();
  }
};
/* harmony export (immutable) */ __webpack_exports__["b"] = hideLoading;


/***/ }),

/***/ 19:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Created by suntao on 2020/2/7.
 */
//菜单折叠
const TOGGLE_MAIN_MENU = 'menu/TOGGLE_MAIN_MENU';
/* harmony export (immutable) */ __webpack_exports__["d"] = TOGGLE_MAIN_MENU;


//登录
const LOGIN_IN = 'login/LOGIN_IN';
/* harmony export (immutable) */ __webpack_exports__["a"] = LOGIN_IN;

const LOGIN_OUT = 'login/LOGIN_OUT';
/* harmony export (immutable) */ __webpack_exports__["b"] = LOGIN_OUT;

const SESSION_ID_KEY = 'kmSessionId';
/* harmony export (immutable) */ __webpack_exports__["c"] = SESSION_ID_KEY;


/***/ }),

/***/ 193:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('transition', {
    attrs: {
      "name": "app"
    }
  }, [_c('router-view')], 1)
},staticRenderFns: []}

/***/ }),

/***/ 48:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(87);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vuex_dist_logger__ = __webpack_require__(197);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vuex_dist_logger___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vuex_dist_logger__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vuex_persistedstate__ = __webpack_require__(196);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vuex_persistedstate___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_vuex_persistedstate__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_js_cookie__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_js_cookie___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_js_cookie__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__state__ = __webpack_require__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__state___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__state__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mutations__ = __webpack_require__(135);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mutations___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__mutations__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__actions__ = __webpack_require__(131);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__actions___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__actions__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__getters__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modules_menu__ = __webpack_require__(134);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__modules_login__ = __webpack_require__(133);
/**
 * Created by suntao on 2020/2/7.
 */



 //vuex持久化localstorage插件








__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */]);

const debug = "production" !== 'production';

let persistedState = {
  paths: ['login.tokens'],
  getState: key => __WEBPACK_IMPORTED_MODULE_4_js_cookie__["getJSON"](key),
  setState: (key, state) => __WEBPACK_IMPORTED_MODULE_4_js_cookie__["set"](key, state, { expires: 3 }) //expires->cookie过期时间，单位为天
};

const store = new __WEBPACK_IMPORTED_MODULE_1_vuex__["a" /* default */].Store({
  state: __WEBPACK_IMPORTED_MODULE_5__state__,
  mutations: __WEBPACK_IMPORTED_MODULE_6__mutations__,
  actions: __WEBPACK_IMPORTED_MODULE_7__actions__,
  getters: __WEBPACK_IMPORTED_MODULE_8__getters__["a" /* default */],
  modules: {
    menu: __WEBPACK_IMPORTED_MODULE_9__modules_menu__["a" /* default */],
    login: __WEBPACK_IMPORTED_MODULE_10__modules_login__["a" /* default */]
  },
  strict: debug,
  plugins: debug ? [__WEBPACK_IMPORTED_MODULE_2_vuex_dist_logger___default()(), __WEBPACK_IMPORTED_MODULE_3_vuex_persistedstate___default()(persistedState)] : [__WEBPACK_IMPORTED_MODULE_3_vuex_persistedstate___default()(persistedState)]
});

/* harmony default export */ __webpack_exports__["a"] = (store);

/***/ }),

/***/ 49:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(110);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_element_ui___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_element_ui__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__store__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__loading__ = __webpack_require__(138);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_js_cookie__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_js_cookie___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_js_cookie__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__store_mutation_types__ = __webpack_require__(19);








// import * as getters from "../store/getters";

// 创建axios实例
const service = __WEBPACK_IMPORTED_MODULE_0_axios___default.a.create({
  withCredentials: true,
  baseURL: __webpack_require__.i({"NODE_ENV":"production"}).BASE_API, // api 的 base_url
  timeout: 1000 * 10 // 请求超时时间
});

// request拦截器
service.interceptors.request.use(config => {
  const url = __webpack_require__.i({"NODE_ENV":"production"}).BASE_API;
  //config.url = config.url
  // console.log(this.$store.getters)
  config.headers['ka_token'] = __WEBPACK_IMPORTED_MODULE_4_js_cookie___default.a.get(__WEBPACK_IMPORTED_MODULE_5__store_mutation_types__["c" /* SESSION_ID_KEY */]);
  return config;
}, error => {
  // Do something with request error
  console.log(error); // for debug
  Promise.reject(error);
});

// response 拦截器
service.interceptors.response.use(
// response => response.data,
response => {
  /**
   * code为非20000是抛错 可结合自己业务进行修改
   */
  const res = response.data;

  if (typeof res.code === 'number' && res.code !== 200000 || typeof res.code === 'string' && res.code !== '0000') {
    if (res.code === 500003 || res.code === 500006 || res.code === 500007) {
      __WEBPACK_IMPORTED_MODULE_1_element_ui__["MessageBox"].confirm('你已被登出，可以取消继续留在该页面，或者重新登录', '确定登出', {
        confirmButtonText: '重新登录',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        __WEBPACK_IMPORTED_MODULE_2__store__["a" /* default */].dispatch('logout').then(() => {
          location.reload(); // 为了重新实例化vue-router对象 避免bug
        });
      }).catch(() => {});
    } else if (res.code === 500006) {
      __WEBPACK_IMPORTED_MODULE_2__store__["a" /* default */].dispatch('logout').then(() => {
        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_element_ui__["Message"])({
          message: res.message,
          type: 'error',
          duration: 2 * 1000,
          onClose() {
            location.replace(`${location.protocol}//${location.host}/login`);
          }
        });
      });
    } else {
      __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_element_ui__["Message"])({
        message: res.message,
        type: 'error',
        duration: 3 * 1000
      });
    }

    return Promise.reject(res.message || 'responseInterceptorsError');
  } else {
    return response.data;
  }
}, error => {
  //console.log('err' + error) // for debug
  __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_element_ui__["Message"])({
    message: error.message,
    type: 'error',
    duration: 5 * 1000
  });
  return Promise.reject(error);
});

/* 请求拦截器（请求之前的操作） */
service.interceptors.request.use(req => {
  __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__loading__["a" /* showLoading */])();
  return req;
}, err => Promise.reject(err));

/* 请求之后的操作 */
service.interceptors.response.use(res => {
  __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__loading__["b" /* hideLoading */])();
  return res;
}, err => {
  __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__loading__["b" /* hideLoading */])();
  return Promise.reject(err);
});

/* harmony default export */ __webpack_exports__["a"] = (service);

/***/ }),

/***/ 79:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Created by suntao on 2020/1/24.
 */

/**
 * auth true登录才能访问，false不需要登录，默认true
 */
/* harmony default export */ __webpack_exports__["a"] = ([{
  path: '/',
  meta: { auth: false },
  component: resolve => __webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(50)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe)
}, {
  path: '/login',
  meta: { auth: false },
  component: resolve => __webpack_require__.e/* require */(0/* duplicate */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(50)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe)
}, {
  path: '/home',
  meta: { auth: true },
  component: resolve => __webpack_require__.e/* require */(1).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(205)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe),
  children: [{
    path: 'channels',
    component: resolve => __webpack_require__.e/* require */(2).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(204)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe),
    meta: { auth: true, icon: 'form' }
  }, {
    path: 'report',
    meta: { auth: true },
    component: resolve => __webpack_require__.e/* require */(4).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(207)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe)
  }, {
    path: 'matebase',
    meta: { auth: true },
    component: resolve => __webpack_require__.e/* require */(5).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(206)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe)
  }]
}, {
  path: '*',
  meta: { auth: false },
  component: resolve => __webpack_require__.e/* require */(0/* duplicate */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(50)]; (resolve.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}.bind(this)).catch(__webpack_require__.oe)
}]);

/***/ }),

/***/ 80:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Created by suntao on 2020/3/20.
 *
 */
/* harmony default export */ __webpack_exports__["a"] = ({
  /**
   * webpack的code spliting（Using require.ensure）功能可以将require.ensure及其回调内依赖的包合并到一个独立的模块（chunk）中，
   * 并且webpack使用jsonp对这个模块进行异步静默加载
   * @好处：在中大型项目中，避免合并后的文件过大；此外，也有利于优化项目的资源加载速度
   * @结果：此处module-a.js,module-b.js,module-c.js将被打包到一个独立的chunk中。可以通过 npm run build查看打包结果。
   */
  start() {
    console.log('webpack2 code splitting demo(Using require.ensure) start...');
    __webpack_require__.e/* require.ensure */(3).then((function (require) {
      __webpack_require__(203);
      console.log('webpack2 code splitting demo(Using require.ensure) end!');
    }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  }
});

/***/ }),

/***/ 81:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 82:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 83:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 84:
/***/ (function(module, exports, __webpack_require__) {

var Component = __webpack_require__(86)(
  /* script */
  null,
  /* template */
  __webpack_require__(193),
  /* scopeId */
  null,
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ })

},[130]);
//# sourceMappingURL=app.965b06e.js.map
