webpackJsonp([7],{

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    },
    toggleClick: {
      type: Function,
      default: null
    }
  }
});

/***/ }),

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components__ = __webpack_require__(133);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixin_ResizeHandler__ = __webpack_require__(134);
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'Layout',
  components: {
    Navbar: __WEBPACK_IMPORTED_MODULE_0__components__["a" /* Navbar */],
    Sidebar: __WEBPACK_IMPORTED_MODULE_0__components__["b" /* Sidebar */],
    AppMain: __WEBPACK_IMPORTED_MODULE_0__components__["c" /* AppMain */]
  },
  mixins: [__WEBPACK_IMPORTED_MODULE_1__mixin_ResizeHandler__["a" /* default */]],
  computed: {
    sidebar() {
      return this.$store.state.app.sidebar;
    },
    device() {
      return this.$store.state.app.device;
    },
    classObj() {
      return {
        hideSidebar: !this.sidebar.opened,
        openSidebar: this.sidebar.opened,
        withoutAnimation: this.sidebar.withoutAnimation,
        mobile: this.device === 'mobile'
      };
    }
  },
  methods: {
    handleClickOutside() {
      this.$store.dispatch('CloseSideBar', { withoutAnimation: false });
    }
  }
});

/***/ }),

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ __webpack_exports__["default"] = ({
  name: 'AppMain',
  computed: {
    // key() {
    //   return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
    // }
  }
});

/***/ }),

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(48);
throw new Error("Cannot find module \"@/components/Breadcrumb\"");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Hamburger__ = __webpack_require__(201);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Hamburger___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_Hamburger__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//





/* harmony default export */ __webpack_exports__["default"] = ({
  components: {
    Breadcrumb: __WEBPACK_IMPORTED_MODULE_1__components_Breadcrumb___default.a,
    Hamburger: __WEBPACK_IMPORTED_MODULE_2__components_Hamburger___default.a
  },
  data() {
    return {
      loginName: this.$store.getters.name
    };
  },
  computed: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__["b" /* mapGetters */])(['sidebar', 'avatar']),
  methods: {
    toggleSideBar() {
      this.$store.dispatch('ToggleSideBar');
    },
    logout() {
      this.$store.dispatch('LogOut').then(() => {
        // location.reload() // 为了重新实例化vue-router对象 避免bug
        this.$router.push({ path: '/login' });
      });
    }
  }
});

/***/ }),

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

throw new Error("Module build failed: SyntaxError: Unexpected token (25:4)\n\n\u001b[0m \u001b[90m 23 | \u001b[39m  components\u001b[33m:\u001b[39m { \u001b[33mSidebarItem\u001b[39m }\u001b[33m,\u001b[39m\n \u001b[90m 24 | \u001b[39m  computed\u001b[33m:\u001b[39m {\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 25 | \u001b[39m    \u001b[33m...\u001b[39mmapGetters([\n \u001b[90m    | \u001b[39m    \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 26 | \u001b[39m      \u001b[32m'permission_routers'\u001b[39m\u001b[33m,\u001b[39m\n \u001b[90m 27 | \u001b[39m      \u001b[32m'sidebar'\u001b[39m\n \u001b[90m 28 | \u001b[39m    ])\u001b[33m,\u001b[39m\u001b[0m\n");

/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_request__ = __webpack_require__(59);
/**
 * 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
      }
    });
  }
});

/***/ }),

/***/ 131:
/***/ (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__(59);


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

/***/ }),

/***/ 132:
/***/ (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__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__router__ = __webpack_require__(80);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_element_ui__ = __webpack_require__(18);
/* 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__App__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__App___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__App__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__modules_code_splitting_demo__ = __webpack_require__(79);
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.


// import VueRouter from 'vue-router'






// import routes from './config/routes'



__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(VueRouter); //路由注册
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_3_element_ui___default.a); //UI框架注册

// const router = new VueRouter({
//   routes
// })

__WEBPACK_IMPORTED_MODULE_2__router__["a" /* default */].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 == '/')) {
    //已登录过，则跳转到主页
    // store.dispatch('GetInfo')
    return next({ path: '/home/channels' });
  }

  next();
});

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

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

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

/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Navbar__ = __webpack_require__(204);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Navbar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__Navbar__);
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Navbar___default.a; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Sidebar__ = __webpack_require__(205);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Sidebar___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__Sidebar__);
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Sidebar___default.a; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AppMain__ = __webpack_require__(203);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AppMain___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__AppMain__);
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_2__AppMain___default.a; });




/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__store__ = __webpack_require__(28);


const { body } = document;
const WIDTH = 992; // refer to Bootstrap's responsive design

/* harmony default export */ __webpack_exports__["a"] = ({
  watch: {
    $route(route) {
      if (this.device === 'mobile' && this.sidebar.opened) {
        __WEBPACK_IMPORTED_MODULE_0__store__["a" /* default */].dispatch('CloseSideBar', { withoutAnimation: false });
      }
    }
  },
  beforeMount() {
    window.addEventListener('resize', this.resizeHandler);
  },
  mounted() {
    const isMobile = this.isMobile();
    if (isMobile) {
      __WEBPACK_IMPORTED_MODULE_0__store__["a" /* default */].dispatch('ToggleDevice', 'mobile');
      __WEBPACK_IMPORTED_MODULE_0__store__["a" /* default */].dispatch('CloseSideBar', { withoutAnimation: true });
    }
  },
  methods: {
    isMobile() {
      const rect = body.getBoundingClientRect();
      return rect.width - 1 < WIDTH;
    },
    resizeHandler() {
      if (!document.hidden) {
        const isMobile = this.isMobile();
        __WEBPACK_IMPORTED_MODULE_0__store__["a" /* default */].dispatch('ToggleDevice', isMobile ? 'mobile' : 'desktop');

        if (isMobile) {
          __WEBPACK_IMPORTED_MODULE_0__store__["a" /* default */].dispatch('CloseSideBar', { withoutAnimation: true });
        }
      }
    }
  }
});

/***/ }),

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

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

/***/ }),

/***/ 136:
/***/ (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);

/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mutation_types__ = __webpack_require__(58);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__apis_tokens__ = __webpack_require__(130);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__apis_user__ = __webpack_require__(131);
/**
 * 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) {
        state.tokens = data.toke;
        state.username = data.username;
      }
    },
    [__WEBPACK_IMPORTED_MODULE_0__mutation_types__["b" /* LOGIN_OUT */]](state) {
      state.tokens = '';
    },
    [__WEBPACK_IMPORTED_MODULE_0__mutation_types__["c" /* USER_INFO */]](state, data) {
      if (data) {
        state.tokens = data.toke;
        state.username = data.username;
      }
    }
  },
  actions: {
    login({ commit, state }, user) {
      __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);
        // setToken(data.data.toke)
      }, error => {
        //fail
        commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["a" /* LOGIN_IN */], '');
        // removeToken()
      });
    },
    // 获取用户信息
    GetInfo({ commit, state }) {
      return new Promise((resolve, reject) => {
        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__apis_user__["a" /* getUserLoginInfo */])(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(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["c" /* USER_INFO */], data);
          resolve(response);
        }).catch(error => {
          reject(error);
        });
      });
    },
    logout({ commit }) {
      commit(__WEBPACK_IMPORTED_MODULE_0__mutation_types__["b" /* LOGIN_OUT */]);
      // removeToken()
    }
  }

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

/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mutation_types__ = __webpack_require__(58);
/**
 * 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
});

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_element_ui__ = __webpack_require__(18);
/* 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;


/***/ }),

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

throw new Error("Module build failed: ModuleBuildError: Module build failed: TypeError: loaderContext.getResolve is not a function\n    at getWebpackImporter (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/sass-loader/dist/utils.js:274:37)\n    at Object.loader (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/sass-loader/dist/index.js:42:61)\n    at runLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/webpack/lib/NormalModule.js:192:19)\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:367:11\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:233:18\n    at runSyncOrAsync (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:143:3)\n    at iterateNormalLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:232:2)\n    at iterateNormalLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:221:10)\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:236:3\n    at Object.context.callback (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:111:13)\n    at Object.module.exports (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/vue-loader/lib/selector.js:14:8)");

/***/ }),

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

// removed by extract-text-webpack-plugin

/***/ }),

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

throw new Error("Module build failed: ModuleBuildError: Module build failed: TypeError: loaderContext.getResolve is not a function\n    at getWebpackImporter (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/sass-loader/dist/utils.js:274:37)\n    at Object.loader (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/sass-loader/dist/index.js:42:61)\n    at runLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/webpack/lib/NormalModule.js:192:19)\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:367:11\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:233:18\n    at runSyncOrAsync (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:143:3)\n    at iterateNormalLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:232:2)\n    at iterateNormalLoaders (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:221:10)\n    at /Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:236:3\n    at Object.context.callback (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/loader-runner/lib/LoaderRunner.js:111:13)\n    at Object.module.exports (/Users/simon/Documents/workspace/wp_202007/ka-manager-ui/node_modules/vue-loader/lib/selector.js:14:8)");

/***/ }),

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

// removed by extract-text-webpack-plugin

/***/ }),

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


/* styles */
__webpack_require__(193)

var Component = __webpack_require__(8)(
  /* script */
  __webpack_require__(125),
  /* template */
  __webpack_require__(208),
  /* scopeId */
  "data-v-9101d060",
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

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


/* styles */
__webpack_require__(194)

var Component = __webpack_require__(8)(
  /* script */
  __webpack_require__(126),
  /* template */
  __webpack_require__(209),
  /* scopeId */
  "data-v-ad85a68c",
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

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


/* styles */
__webpack_require__(195)

var Component = __webpack_require__(8)(
  /* script */
  __webpack_require__(127),
  /* template */
  __webpack_require__(210),
  /* scopeId */
  "data-v-ee23895e",
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

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


/* styles */
__webpack_require__(192)

var Component = __webpack_require__(8)(
  /* script */
  __webpack_require__(128),
  /* template */
  __webpack_require__(207),
  /* scopeId */
  "data-v-7a6da889",
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

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

var Component = __webpack_require__(8)(
  /* script */
  __webpack_require__(129),
  /* template */
  __webpack_require__(206),
  /* scopeId */
  null,
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ }),

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

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('el-scrollbar', {
    attrs: {
      "wrap-class": "scrollbar-wrapper"
    }
  }, [_c('el-menu', {
    attrs: {
      "default-active": _vm.$route.path,
      "collapse": _vm.isCollapse,
      "background-color": _vm.variables.menuBg,
      "text-color": _vm.variables.menuText,
      "active-text-color": _vm.variables.menuActiveText,
      "collapse-transition": false,
      "mode": "vertical"
    }
  }, _vm._l((_vm.permission_routers), function(route) {
    return _c('sidebar-item', {
      key: route.path,
      attrs: {
        "item": route,
        "base-path": route.path
      }
    })
  }), 1)], 1)
},staticRenderFns: []}

/***/ }),

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

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "navbar"
  }, [_c('hamburger', {
    staticClass: "hamburger-container",
    attrs: {
      "toggle-click": _vm.toggleSideBar,
      "is-active": _vm.sidebar.opened
    }
  }), _vm._v(" "), _c('breadcrumb'), _vm._v(" "), _c('el-dropdown', {
    staticClass: "avatar-container",
    attrs: {
      "trigger": "click"
    }
  }, [_c('div', {
    staticClass: "avatar-wrapper",
    staticStyle: {
      "font-size": "large",
      "padding": "10px 0"
    }
  }, [_vm._v("\n      " + _vm._s(_vm.loginName) + "\n      "), _vm._v(" "), _c('i', {
    staticClass: "el-icon-caret-bottom"
  })]), _vm._v(" "), _c('el-dropdown-menu', {
    staticClass: "user-dropdown",
    attrs: {
      "slot": "dropdown"
    },
    slot: "dropdown"
  }, [_c('router-link', {
    staticClass: "inlineBlock",
    attrs: {
      "to": "/"
    }
  }, [_c('el-dropdown-item', [_vm._v("\n          Home\n        ")])], 1), _vm._v(" "), _c('el-dropdown-item', {
    attrs: {
      "divided": ""
    }
  }, [_c('span', {
    staticStyle: {
      "display": "block"
    },
    on: {
      "click": _vm.logout
    }
  }, [_vm._v("LogOut")])])], 1)], 1)], 1)
},staticRenderFns: []}

/***/ }),

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

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', [_c('svg', {
    staticClass: "hamburger",
    class: {
      'is-active': _vm.isActive
    },
    attrs: {
      "viewBox": "0 0 1024 1024",
      "xmlns": "http://www.w3.org/2000/svg",
      "width": "64",
      "height": "64"
    },
    on: {
      "click": _vm.toggleClick
    }
  }, [_c('path', {
    attrs: {
      "d": "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"
    }
  })])])
},staticRenderFns: []}

/***/ }),

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

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "app-wrapper",
    class: _vm.classObj
  }, [(_vm.device === 'mobile' && _vm.sidebar.opened) ? _c('div', {
    staticClass: "drawer-bg",
    on: {
      "click": _vm.handleClickOutside
    }
  }) : _vm._e(), _vm._v(" "), _c('sidebar', {
    staticClass: "sidebar-container"
  }), _vm._v(" "), _c('div', {
    staticClass: "main-container"
  }, [_c('navbar'), _vm._v(" "), _c('app-main')], 1)], 1)
},staticRenderFns: []}

/***/ }),

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

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

/***/ }),

/***/ 211:
/***/ (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: []}

/***/ }),

/***/ 28:
/***/ (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__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vuex_dist_logger__ = __webpack_require__(216);
/* 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__(215);
/* 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__(196);
/* 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__(140);
/* 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__(139);
/* 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__(135);
/* 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__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modules_menu__ = __webpack_require__(138);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__modules_login__ = __webpack_require__(137);
/**
 * 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', 'login.username'],
  getState: key => __WEBPACK_IMPORTED_MODULE_4_js_cookie__["getJSON"](key),
  setState: (key, state) => __WEBPACK_IMPORTED_MODULE_4_js_cookie__["set"](key, state, { expires: 1 }) //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);

/***/ }),

/***/ 58:
/***/ (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';
/* unused harmony export SESSION_ID_KEY */

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


/***/ }),

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

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(107);
/* 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__(18);
/* 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__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__loading__ = __webpack_require__(141);





// import {getToken} from '@/utils/auth'


// 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_2__store__["a" /* default */].state.login.tokens;
  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/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 */(5).then((function (require) {
      // require('./module-c')
      // console.log('webpack2 code splitting demo(Using require.ensure) end!')
    }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  }
});

/***/ }),

/***/ 80:
/***/ (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_vue_router__ = __webpack_require__(212);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout__ = __webpack_require__(202);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout__);



// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading

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

/* Layout */


/**
* hidden: true                   if `hidden:true` will not show in the sidebar(default is false)
* alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
*                                if not set alwaysShow, only more than one route under the children
*                                it will becomes nested mode, otherwise not show the root menu
* redirect: noredirect           if `redirect:noredirect` will no redirect in the breadcrumb
* name:'router-name'             the name is used by <keep-alive> (must set!!!)
* meta : {
    title: 'title'               the name show in subMenu and breadcrumb (recommend set)
    icon: 'svg-name'             the icon show in the sidebar
    breadcrumb: false            if false, the item will hidden in breadcrumb(default is true)
  }
**/

const constantRouterMap = [{ path: '/login', component: () => __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, 224)), hidden: true }, { path: '/404', component: () => __webpack_require__.e/* import() */(1).then(__webpack_require__.bind(null, 222)), hidden: true }, {
  path: '',
  redirect: '/channel',
  component: __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout___default.a,
  children: [{
    path: 'channel',
    name: 'Channel',
    component: () => Promise.reject(function webpackMissingModule() { var e = new Error("Cannot find module \"@/modules/channel/index\""); e.code = 'MODULE_NOT_FOUND';; return e; }()),
    meta: { title: '配置', icon: 'form' }
  }]
}, {
  path: '/report',
  component: __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout___default.a,
  children: [{
    path: '',
    name: 'Report',
    component: () => __webpack_require__.e/* import() */(4).then(__webpack_require__.bind(null, 226)),
    meta: { title: '订单', icon: 'nested' }
  }]
},

// {
//   path: '/testorder',
//   component: Layout,
//   meta: {
//     title: '测试订单',
//     icon: 'people'
//   },
//   children: [
//     {
//       path: 'generate',
//       name: 'generate',
//       component: () => import('@/views/testorder/generate'),
//       meta: { title: '生成订单' }
//     },
//     {
//       path: 'query',
//       name: 'query',
//       component: () => import('@/views/testorder/query'),
//       meta: { title: '查询订单' }
//     }
//   ]
// },

{
  path: '/',
  name: 'Dashboard',
  component: __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout___default.a,
  hidden: true,
  children: [{
    path: 'dashboard',
    component: () => __webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, 223))
  }]
}, { path: '*', redirect: '/404', hidden: true }];
/* unused harmony export constantRouterMap */


/* harmony default export */ __webpack_exports__["a"] = (new __WEBPACK_IMPORTED_MODULE_1_vue_router__["a" /* default */]({
  mode: 'history', // 后端支持可开
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
}));

const asyncRouterMap = [{
  path: '/metabase',
  component: __WEBPACK_IMPORTED_MODULE_2__modules_layout_Layout___default.a,
  meta: {
    title: 'metabase',
    icon: 'user'
  },
  children: [{
    path: 'op',
    name: 'op',
    component: () => __webpack_require__.e/* import() */(3).then(__webpack_require__.bind(null, 225)),
    meta: { title: 'metabase' }
  }]
}];
/* unused harmony export asyncRouterMap */


/***/ }),

/***/ 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__(8)(
  /* script */
  null,
  /* template */
  __webpack_require__(211),
  /* scopeId */
  null,
  /* cssModules */
  null
)

module.exports = Component.exports


/***/ })

},[132]);
//# sourceMappingURL=app.978b1cd.js.map