| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home"],{"0721":function(t,e,n){"use strict";var r=n("bce8"),o=n.n(r);o.a},1173:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},2087:function(t,e,n){},"24c5":function(t,e,n){"use strict";var r,o,i,s,c=n("b8e3"),a=n("e53d"),l=n("d864"),u=n("40c3"),f=n("63b6"),d=n("f772"),h=n("79aa"),p=n("1173"),v=n("a22a"),m=n("f201"),b=n("4178").set,g=n("aba2")(),x=n("656e"),y=n("4439"),_=n("bc13"),w=n("cd78"),O="Promise",j=a.TypeError,k=a.process,P=k&&k.versions,C=P&&P.v8||"",S=a[O],$="process"==u(k),L=function(){},T=o=x.f,F=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(L,L)};return($||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==C.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),E=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){var r=t._v,o=1==t._s,i=0,s=function(e){var n,i,s,c=o?e.ok:e.fail,a=e.resolve,l=e.reject,u=e.domain;try{c?(o||(2==t._h&&q(t),t._h=1),!0===c?n=r:(u&&u.enter(),n=c(r),u&&(u.exit(),s=!0)),n===e.promise?l(j("Promise-chain cycle")):(i=E(n))?i.call(n,a,l):a(n)):l(r)}catch(f){u&&!s&&u.exit(),l(f)}};while(n.length>i)s(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)}))}},R=function(t){b.call(a,(function(){var e,n,r,o=t._v,i=D(t);if(i&&(e=y((function(){$?k.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=$||D(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},q=function(t){b.call(a,(function(){var e;$?k.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})}))},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},M=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=E(t))?g((function(){var r={_w:n,_d:!1};try{e.call(t,l(M,r,1),l(A,r,1))}catch(o){A.call(r,o)}})):(n._v=t,n._s=1,I(n,!1))}catch(r){A.call({_w:n,_d:!1},r)}}};F||(S=function(t){p(this,S,O,"_h"),h(t),r.call(this);try{t(l(M,this,1),l(A,this,1))}catch(e){A.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(S.prototype,{then:function(t,e){var n=T(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=$?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=l(M,t,1),this.reject=l(A,t,1)},x.f=T=function(t){return t===S||t===s?new i(t):o(t)}),f(f.G+f.W+f.F*!F,{Promise:S}),n("45f2")(S,O),n("4c95")(O),s=n("584a")[O],f(f.S+f.F*!F,O,{reject:function(t){var e=T(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(c||!F),O,{resolve:function(t){return w(c&&this===s?S:this,t)}}),f(f.S+f.F*!(F&&n("4ee1")((function(t){S.all(t)["catch"](L)}))),O,{all:function(t){var e=this,n=T(e),r=n.resolve,o=n.reject,i=y((function(){var n=[],i=0,s=1;v(t,!1,(function(t){var c=i++,a=!1;n.push(void 0),s++,e.resolve(t).then((function(t){a||(a=!0,n[c]=t,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=T(e),r=n.reject,o=y((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},3024:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"312a":function(t,e,n){"use strict";var r=n("3525"),o=n.n(r);o.a},3525:function(t,e,n){},3702:function(t,e,n){var r=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),o=n("584a"),i=n("e53d"),s=n("f201"),c=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}})},"40c3":function(t,e,n){var r=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},4178:function(t,e,n){var r,o,i,s=n("d864"),c=n("3024"),a=n("32fc"),l=n("1ec9"),u=n("e53d"),f=u.process,d=u.setImmediate,h=u.clearImmediate,p=u.MessageChannel,v=u.Dispatch,m=0,b={},g="onreadystatechange",x=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},y=function(t){x.call(t.data)};d&&h||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return b[++m]=function(){c("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete b[t]},"process"==n("6b4c")(f)?r=function(t){f.nextTick(s(x,t,1))}:v&&v.now?r=function(t){v.now(s(x,t,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=y,r=s(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r=g in l("script")?function(t){a.appendChild(l("script"))[g]=function(){a.removeChild(this),x.call(t)}}:function(t){setTimeout(s(x,t,1),0)}),t.exports={set:d,clear:h}},"43fc":function(t,e,n){"use strict";var r=n("63b6"),o=n("656e"),i=n("4439");r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"4c95":function(t,e,n){"use strict";var r=n("e53d"),o=n("584a"),i=n("d9f6"),s=n("8e60"),c=n("5168")("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];s&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},t(i)}catch(s){}return n}},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},"656e":function(t,e,n){"use strict";var r=n("79aa");function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},7159:function(t,e,n){t.exports=n.p+"static/img/img.146655c9.jpg"},"795b":function(t,e,n){t.exports=n("696e")},"7cd6":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"7ed4":function(t,e,n){"use strict";var r=n("2b0e"),o=new r["default"];e["a"]=o},"85f2":function(t,e,n){t.exports=n("454f")},a22a:function(t,e,n){var r=n("d864"),o=n("b0dc"),i=n("3702"),s=n("e4ae"),c=n("b447"),a=n("7cd6"),l={},u={};e=t.exports=function(t,e,n,f,d){var h,p,v,m,b=d?function(){return t}:a(t),g=r(n,f,e?2:1),x=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(h=c(t.length);h>x;x++)if(m=e?g(s(p=t[x])[0],p[1]):g(t[x]),m===l||m===u)return m}else for(v=b.call(t);!(p=v.next()).done;)if(m=o(v,g,p.value,e),m===l||m===u)return m};e.BREAK=l,e.RETURN=u},aba2:function(t,e,n){var r=n("e53d"),o=n("4178").set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,c=r.Promise,a="process"==n("6b4c")(s);t.exports=function(){var t,e,n,l=function(){var r,o;a&&(r=s.domain)&&r.exit();while(t){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,r&&r.enter()};if(a)n=function(){s.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var u=c.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var f=!0,d=document.createTextNode("");new i(l).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(s){var i=t["return"];throw void 0!==i&&r(i.call(t)),s}}},bc13:function(t,e,n){var r=n("e53d"),o=r.navigator;t.exports=o&&o.userAgent||""},bce8:function(t,e,n){},bd86:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("85f2"),o=n.n(r);function i(t,e,n){return e in t?o()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},bfe9:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("v-head"),n("v-sidebar"),n("div",{staticClass:"content-box",class:{"content-collapse":t.collapse}},[n("v-tags"),n("div",{staticClass:"content"},[n("transition",{attrs:{name:"move",mode:"out-in"}},[n("keep-alive",{attrs:{include:t.tagsList}},[n("router-view")],1)],1),n("el-backtop",{attrs:{target:".content"}})],1)],1)],1)},o=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("7f7f"),n("96cf"),n("795b")),s=n.n(i);function c(t,e,n,r,o,i,c){try{var a=t[i](c),l=a.value}catch(u){return void n(u)}a.done?e(l):s.a.resolve(l).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new s.a((function(r,o){var i=t.apply(e,n);function s(t){c(i,r,o,s,a,"next",t)}function a(t){c(i,r,o,s,a,"throw",t)}s(void 0)}))}}var l=n("bd86"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("div",{staticClass:"collapse-btn",on:{click:t.collapseChage}},[t.collapse?n("i",{staticClass:"el-icon-s-unfold"}):n("i",{staticClass:"el-icon-s-fold"})]),n("div",{staticClass:"logo"},[t._v("后台管理系统")]),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-user-con"},[n("div",{staticClass:"btn-fullscreen",on:{click:t.handleFullScreen}},[n("el-tooltip",{attrs:{effect:"dark",content:t.fullscreen?"取消全屏":"全屏",placement:"bottom"}},[n("i",{staticClass:"el-icon-rank"})])],1),n("div",{staticClass:"btn-bell"},[n("el-tooltip",{attrs:{effect:"dark",content:t.message?"有"+t.message+"条未读消息":"消息中心",placement:"bottom"}},[n("router-link",{attrs:{to:"/tabs"}},[n("i",{staticClass:"el-icon-bell"})])],1),t.message?n("span",{staticClass:"btn-bell-badge"}):t._e()],1),t._m(0),n("el-dropdown",{staticClass:"user-name",attrs:{trigger:"click"},on:{command:t.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[t._v(" "+t._s(t.userInfo?t.userInfo.user_name:"")+" "),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("a",{attrs:{href:"https://github.com/lin-xin/vue-manage-system",target:"_blank"}},[n("el-dropdown-item",[t._v("项目仓库")])],1),n("el-dropdown-item",{attrs:{divided:"",command:"loginout"}},[t._v("退出登录")])],1)],1)],1)])])},f=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"user-avator"},[r("img",{attrs:{src:n("7159")}})])}],d=n("7ed4"),h=n("2f62"),p=n("6fa2");function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(l["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b={data:function(){return{collapse:!1,fullscreen:!1,message:2}},computed:m({},Object(h["c"])(["userInfo"])),methods:m({},Object(h["b"])(["setToken"]),{handleCommand:function(t){"loginout"==t&&(p["a"].request.get("/sysLogin/logout"),localStorage.removeItem("token"),sessionStorage.removeItem("token"),this.setToken(""),this.$router.push("/login"))},collapseChage:function(){this.collapse=!this.collapse,d["a"].$emit("collapse",this.collapse)},handleFullScreen:function(){var t=document.documentElement;this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen(),this.fullscreen=!this.fullscreen}}),mounted:function(){document.body.clientWidth<1500&&this.collapseChage()}},g=b,x=(n("312a"),n("2877")),y=Object(x["a"])(g,u,f,!1,null,"af48d224",null),_=y.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar"},[n("el-menu",{staticClass:"sidebar-el-menu",attrs:{"default-active":t.onRoutes,collapse:t.collapse,"background-color":"#324157","text-color":"#bfcbd9","active-text-color":"#20a0ff","unique-opened":"",router:""}},[t._l(t.items,(function(e){return[e.subs?[n("el-submenu",{key:e.index,attrs:{index:e.index}},[n("template",{slot:"title"},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))])]),t._l(e.subs,(function(e){return[e.subs?n("el-submenu",{key:e.index,attrs:{index:e.index}},[n("template",{slot:"title"},[t._v(t._s(e.title))]),t._l(e.subs,(function(e,r){return n("el-menu-item",{key:r,attrs:{index:e.index}},[t._v(t._s(e.title))])}))],2):n("el-menu-item",{key:e.index,attrs:{index:e.index}},[t._v(t._s(e.title))])]}))],2)]:[n("el-menu-item",{key:e.index,attrs:{index:e.index}},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))])])]]}))],2)],1)},O=[];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){Object(l["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var P={data:function(){return{collapse:!1}},computed:k({},Object(h["c"])(["menus"]),{onRoutes:function(){return this.$route.path},items:function(){var t=[];this.menus&&this.menus.map((function(e){t.push(e)}));var e=[{icon:"el-icon-lx-cascades",index:"table",title:"基础表格"},{icon:"el-icon-lx-copy",index:"tabs",title:"tab选项卡"},{icon:"el-icon-lx-calendar",index:"3",title:"表单相关",subs:[{index:"form",title:"基本表单"},{index:"3-2",title:"三级菜单",subs:[{index:"editor",title:"富文本编辑器"},{index:"markdown",title:"markdown编辑器"}]},{index:"upload",title:"文件上传"}]},{icon:"el-icon-lx-emoji",index:"icon",title:"自定义图标"},{icon:"el-icon-pie-chart",index:"charts",title:"schart图表"},{icon:"el-icon-rank",index:"6",title:"拖拽组件",subs:[{index:"drag",title:"拖拽列表"},{index:"dialog",title:"拖拽弹框"}]},{icon:"el-icon-lx-global",index:"i18n",title:"国际化功能"},{icon:"el-icon-lx-warn",index:"7",title:"错误处理",subs:[{index:"permission",title:"权限测试"},{index:"/404",title:"404页面"}]},{icon:"el-icon-lx-redpacket_fill",index:"/donate",title:"支持作者"},{icon:"el-icon-apple",index:"/demo",title:"测试页面"}];return e.map((function(e){t.push(e)})),t}}),created:function(){var t=this;d["a"].$on("collapse",(function(e){t.collapse=e,d["a"].$emit("collapse-content",e)}))}},C=P,S=(n("0721"),Object(x["a"])(C,w,O,!1,null,"a92953ec",null)),$=S.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showTags?n("div",{staticClass:"tags"},[n("ul",t._l(t.tagsList,(function(e,r){return n("li",{key:r,staticClass:"tags-li",class:{active:t.isActive(e.path)}},[n("router-link",{staticClass:"tags-li-title",attrs:{to:e.path}},[t._v(" "+t._s(e.title)+" ")]),n("span",{staticClass:"tags-li-icon",on:{click:function(e){return t.closeTags(r)}}},[n("i",{staticClass:"el-icon-close"})])],1)})),0),n("div",{staticClass:"tags-close-box"},[n("el-dropdown",{on:{command:t.handleTags}},[n("el-button",{attrs:{size:"mini",type:"primary"}},[t._v(" 标签选项"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown",size:"small"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"other"}},[t._v("关闭其他")]),n("el-dropdown-item",{attrs:{command:"all"}},[t._v("关闭所有")])],1)],1)],1)]):t._e()},T=[],F={data:function(){return{tagsList:[]}},methods:{isActive:function(t){return t===this.$route.fullPath},closeTags:function(t){var e=this.tagsList.splice(t,1)[0],n=this.tagsList[t]?this.tagsList[t]:this.tagsList[t-1];n?e.path===this.$route.fullPath&&this.$router.push(n.path):this.$router.push("/")},closeAll:function(){this.tagsList=[],this.$router.push("/")},closeOther:function(){var t=this,e=this.tagsList.filter((function(e){return e.path===t.$route.fullPath}));this.tagsList=e},setTags:function(t){var e=this.tagsList.some((function(e){return e.path===t.fullPath}));e||(this.tagsList.length>=8&&this.tagsList.shift(),this.tagsList.push({title:t.meta.title,path:t.fullPath,name:t.matched[1].components.default.name})),d["a"].$emit("tags",this.tagsList)},handleTags:function(t){"other"===t?this.closeOther():this.closeAll()}},computed:{showTags:function(){return this.tagsList.length>0}},watch:{$route:function(t,e){this.setTags(t)}},created:function(){var t=this;this.setTags(this.$route),d["a"].$on("close_current_tags",(function(){for(var e=0,n=t.tagsList.length;e<n;e++){var r=t.tagsList[e];if(r.path===t.$route.fullPath){e<n-1?t.$router.push(t.tagsList[e+1].path):e>0?t.$router.push(t.tagsList[e-1].path):t.$router.push("/"),t.tagsList.splice(e,1);break}}}))}},E=F,I=(n("c5f3"),Object(x["a"])(E,L,T,!1,null,null,null)),R=I.exports;function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){Object(l["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A={data:function(){return{tagsList:[],collapse:!1}},components:{vHead:_,vSidebar:$,vTags:R},methods:q({},Object(h["b"])(["setUserInfo","setToken","setMenus"]),{getUserInfo:function(){var t=this,e=a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["a"].request.get("/system/index/index");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))();e.then((function(e){0===e.code?(t.setUserInfo(e.data.userInfo),t.setMenus(e.data.menuList)):(t.$message.error(e.msg+"请登陆。"),localStorage.removeItem("token"),sessionStorage.removeItem("token"),t.setToken(""),t.$router.push("/login"))})).catch((function(e){console.log(e),localStorage.removeItem("token"),sessionStorage.removeItem("token"),t.setToken(""),t.$router.push("/login")}))}}),created:function(){var t=this;d["a"].$on("collapse-content",(function(e){t.collapse=e})),d["a"].$on("tags",(function(e){for(var n=[],r=0,o=e.length;r<o;r++)e[r].name&&n.push(e[r].name);t.tagsList=n})),this.getUserInfo()}},M=A,U=Object(x["a"])(M,r,o,!1,null,null,null);e["default"]=U.exports},c5f3:function(t,e,n){"use strict";var r=n("2087"),o=n.n(r);o.a},cd78:function(t,e,n){var r=n("e4ae"),o=n("f772"),i=n("656e");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),s=n.resolve;return s(e),n.promise}},f201:function(t,e,n){var r=n("e4ae"),o=n("79aa"),i=n("5168")("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[i])?e:o(n)}}}]);
|