zx/public/kefu/js/app.fca0d849.js

1 line
82 KiB
JavaScript
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0781":function(e,t,n){"use strict";n.r(t);n("24ab");var c=n("83d6"),i=n.n(c),a=i.a.showSettings,o=i.a.tagsView,r=i.a.fixedHeader,s=i.a.sidebarLogo,u={theme:JSON.parse(localStorage.getItem("themeColor"))?JSON.parse(localStorage.getItem("themeColor")):"#1890ff",showSettings:a,tagsView:o,fixedHeader:r,sidebarLogo:s,isEdit:!1},A={CHANGE_SETTING:function(e,t){var n=t.key,c=t.value;e.hasOwnProperty(n)&&(e[n]=c)},SET_ISEDIT:function(e,t){e.isEdit=t}},d={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)},setEdit:function(e,t){var n=e.commit;n("SET_ISEDIT",t)}};t["default"]={namespaced:!0,state:u,mutations:A,actions:d}},"096e":function(e,t,n){"use strict";n.r(t);var c=n("e017"),i=n.n(c),a=n("21a1"),o=n.n(a),r=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-skill"><path d="M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042l-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z" /></symbol>'});o.a.add(r);t["default"]=r},"0f9a":function(e,t,n){"use strict";n.r(t);var c=n("c80c"),i=(n("96cf"),n("3b8d")),a=(n("7f7f"),n("42e3")),o=n("5f87"),r=n("a18c"),s=n("a78e"),u=n.n(s),A={token:Object(o["a"])(),name:"",avatar:"",introduction:"",roles:[],menuList:JSON.parse(localStorage.getItem("MenuList"))},d={SET_MENU_LIST:function(e,t){e.menuList=t},SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t}},l={login:function(e,t){var n=e.commit;return new Promise((function(e,c){Object(a["j"])(t).then((function(t){var c=t.data;n("SET_TOKEN",c.token),u.a.set("ServiceInfo",c.admin),Object(o["c"])(c.token),e(c)})).catch((function(e){c(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,c){Object(a["c"])(n.token).then((function(n){var i=n.data;i||c("Verification failed, please Login again.");var a=i.roles,o=i.name,r=i.avatar,s=i.introduction;(!a||a.length<=0)&&c("getInfo: roles must be a non-null array!"),t("SET_ROLES",a),t("SET_NAME",o),t("SET_AVATAR",r),t("SET_INTRODUCTION",s),e(i)})).catch((function(e){c(e)}))}))},logout:function(e){var t=e.commit,n=e.state,c=e.dispatch;return new Promise((function(e,i){Object(a["k"])(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),Object(r["d"])(),u.a.remove("ServiceInfo"),c("tagsView/delAllViews",null,{root:!0}),e()})).catch((function(e){i(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(o["b"])(),e()}))},changeRoles:function(e,t){var n=e.commit,a=e.dispatch;return new Promise(function(){var e=Object(i["a"])(Object(c["a"])().mark((function e(i){var s,u,A,d;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t+"-token",n("SET_TOKEN",s),Object(o["c"])(s),e.next=5,a("getInfo");case 5:return u=e.sent,A=u.roles,Ob