travel/service/public/static/js/app.7347a4e3.js

1 line
128 KiB
JavaScript
Raw Normal View History

2024-06-24 11:52:30 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0185":function(e,t,n){"use strict";n("a187")},"0781":function(e,t,n){"use strict";n.r(t);var a=n("24ab"),i=n.n(a),o=n("83d6"),c=n.n(o),s=c.a.showSettings,r=c.a.tagsView,l=c.a.fixedHeader,u=c.a.sidebarLogo,d={theme:i.a.theme,showSettings:s,tagsView:r,fixedHeader:l,sidebarLogo:u},h={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},m={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}};t["default"]={namespaced:!0,state:d,mutations:h,actions:m}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),s=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>'});c.a.add(s);t["default"]=s},"0f9a":function(e,t,n){"use strict";n.r(t);var a=n("c7eb"),i=n("1da1"),o=(n("b0c0"),n("d3b7"),n("498a"),n("b775"));function c(e){return Object(o["a"])({url:"/admin/login",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/admin/index/info",method:"get",params:{token:e}})}function r(){return Object(o["a"])({url:"/admin/login/logout",method:"post"})}var l=n("5f87"),u=n("a18c"),d={token:Object(l["a"])(),name:"",avatar:"",is_anchor:0,introduction:"",roles:[],oss:[]},h={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_ANCHOR:function(e,t){e.is_anchor=t},SET_ROLES:function(e,t){e.roles=t},SET_OSS:function(e,t){e.oss=t}},m={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){c({username:a.trim(),password:i}).then((function(t){var a=t.data;n("SET_TOKEN",a.token),Object(l["c"])(a.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){s(n.token).then((function(n){var i=n.data;i||a("Verification failed, please Login again.");var o=i.roles,c=i.name,s=i.avatar,r=i.is_anchor,l=i.introduction,u=i.oss;(!o||o.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_ROLES",o),t("SET_NAME",c),t("SET_AVATAR",s),t("SET_ANCHOR",r),t("SET_INTRODUCTION",l),t("SET_OSS",u),e(i)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state,a=e.dispatch;return new Promise((function(e,i){r(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(l["b"])(),Object(u["d"])(),a("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(l["b"])(),e()}))},changeRoles:function(e,t){return Object(i["a"])(Object(a["a"])().mark((function n(){var i,o,c,s,r,d;return Object(a["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.commit,o=e.dispatch,c=t+"-token",i("SET_TOKEN"