From 67a3a0384a465215379b60c2d37a5d5fc0bf9a40 Mon Sep 17 00:00:00 2001
From: wen <1515>
Date: Sat, 5 Nov 2022 18:38:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E5=88=87=E6=8D=A2?=
=?UTF-8?q?=E7=9A=AE=E8=82=A4=E7=9A=84=E6=97=B6=E5=80=99=E5=BD=93=E5=89=8D?=
=?UTF-8?q?=E7=9A=AE=E8=82=A4=E6=98=BE=E7=A4=BA=E4=B9=9F=E9=9A=8F=E4=B9=8B?=
=?UTF-8?q?=E5=8F=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dist/index.html | 2 +-
...755f3784.d185d2a3.css => chunk-21359588.d185d2a3.css} | 0
dist/static/js/app.79669312.js | 1 +
dist/static/js/app.ddece848.js | 1 -
dist/static/js/chunk-21359588.fa3c756c.js | 1 +
dist/static/js/chunk-755f3784.57a0ed31.js | 1 -
src/store/modules/settings.js | 9 +++++++++
src/views/systme/switchtheme.vue | 1 +
8 files changed, 13 insertions(+), 3 deletions(-)
rename dist/static/css/{chunk-755f3784.d185d2a3.css => chunk-21359588.d185d2a3.css} (100%)
create mode 100644 dist/static/js/app.79669312.js
delete mode 100644 dist/static/js/app.ddece848.js
create mode 100644 dist/static/js/chunk-21359588.fa3c756c.js
delete mode 100644 dist/static/js/chunk-755f3784.57a0ed31.js
diff --git a/dist/index.html b/dist/index.html
index 06f68b3..54a971d 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1 +1 @@
-
嘉洛马 — 文件后台管理系统
\ No newline at end of file
+嘉洛马 — 文件后台管理系统
\ No newline at end of file
diff --git a/dist/static/css/chunk-755f3784.d185d2a3.css b/dist/static/css/chunk-21359588.d185d2a3.css
similarity index 100%
rename from dist/static/css/chunk-755f3784.d185d2a3.css
rename to dist/static/css/chunk-21359588.d185d2a3.css
diff --git a/dist/static/js/app.79669312.js b/dist/static/js/app.79669312.js
new file mode 100644
index 0000000..b0c7c3e
--- /dev/null
+++ b/dist/static/js/app.79669312.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0259":function(e,t,n){},"18f0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"30c3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"495d":function(e,t,n){},"4a9d":function(e,t,n){"use strict";var i=n("2b0e"),a=new i["default"];t["a"]=a},"4df5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(o);t["default"]=o},5099:function(e,t,n){"use strict";n("721c")},"51ff":function(e,t,n){var i={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var i=n("2b0e"),a=n("5c96"),r=n.n(a),s=(n("0fae"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),o=[],c={name:"App"},u=c,d=n("2877"),l=Object(d["a"])(u,s,o,!1,null,null,null),h=l.exports,m=n("2f62"),p=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),f=p,v=n("a78e"),b=n.n(v),g={sidebar:{opened:!b.a.get("sidebarStatus")||!!+b.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},w={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?b.a.set("sidebarStatus",1):b.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){b.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},x={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:g,mutations:w,actions:x},y=n("83d6"),O=n.n(y),C=O.a.showSettings,T=O.a.fixedHeader,k=O.a.sidebarLogo,M={showSettings:C,fixedHeader:T,sidebarLogo:k,configMain:{version:"",supportedThemes:"",admin_supportedFileTypes:".jpg, .jpeg, .png, .gif, .webp",admin_maxUploadFileSize:5242870,admin_maxUploadFileNumber:5}},z={CONFIG_DATA:function(e,t){e.configMain.version=t.version,e.configMain.supportedThemes=t.currentTheme,e.configMain.admin_supportedFileTypes=t.admin_supportedFileTypes,e.configMain.admin_maxUploadFileSize=t.admin_maxUploadFileSize,e.configMain.admin_maxUploadFileNumber=t.admin_maxUploadFileNumber},THME_NAME:function(e,t){e.configMain.supportedThemes=t}},S={configMain:function(e,t){var n=e.commit;n("CONFIG_DATA",t)},thmename:function(e,t){var n=e.commit;n("THME_NAME",t)}},j={namespaced:!0,state:M,mutations:z,actions:S},E=(n("d3b7"),n("498a"),n("c24f")),H=n("5f87"),B=(n("3ca3"),n("ddb0"),n("8c4f")),$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},[n("div",{staticClass:"toptitle clearfix"},[e._m(0),n("div",{staticClass:"rightk tpriht"},[n("el-button",{staticClass:"quit",attrs:{id:"tuichu",size:"mini",round:""},nativeOn:{click:function(t){return e.logout(t)}}},[e._v("退出")])],1)]),n("div",{staticClass:"content_main"},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{staticClass:"navbar_main",class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},L=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[i("img",{attrs:{src:n("7b07"),alt:"图片"}}),i("em",{staticClass:"erectline"}),i("span",[e._v("文件后台管理系统")])])}],A=n("c7eb"),V=n("1da1"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container"})],1)},D=[],N=n("5530"),P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.breadcrumbq?n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1):n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList2,(function(t){return n("el-breadcrumb-item",{key:t.path},[n("a",{attrs:{href:"#"+t.path}},[e._v(e._s(t.meta.title))])])})),1)],1)},q=[],I=(n("4de4"),n("99af"),n("bd11")),U=n.n(I),G=[{id:"0",path:"/homepage",meta:{title:"首页",icon:"dashboard"}},{id:"1",path:"/filemange/index",class:"file",meta:{title:"文件管理",icon:"el-icon-s-help"},children:[]},{id:"2",path:"/usermange/index",meta:{title:"用户管理",icon:"form"}},{id:"3",path:"/systme",meta:{title:"系统管理",icon:"dashboard"},children:[{id:"3-1",path:"changepass",meta:{title:"修改密码",icon:"table"}},{id:"3-2",path:"userrelated",meta:{title:"用户相关",icon:"tree"}},{id:"3-3",path:"switchtheme",meta:{title:"皮肤更换",icon:"tree"}}]}],R=G,J={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:R,levelList2:[]}},watch:{$route:function(){this.ifbreadshow()},getcrumbsData:{handler:function(e,t){this.extractChild=this.arrToobj(e),this.ifbreadshow()},deep:!0}},created:function(){this.extractChild=null},computed:{},methods:{ifbreadshow:function(){var e=window.location.href,t=null,n=null;if(-1!=e.indexOf("filemange")){for(var i in this.extractChild)if(1==this.extractChild[i].id){n=this.extractChild[i];break}-1!=e.indexOf("?id")?(t=e.split("?id=")[1],this.levelList2=this.getBread(t,this.extractChild),this.levelList2.reverse()):this.levelList2=[],this.levelList2.unshift(n),this.breadcrumbq=!1}else this.breadcrumbq=!0,this.getBreadcrumb()},arrToobj:function(e){var t,n={};for(var i in e)if("undefined"!=typeof e[i]["children"])for(var a in t=this.arrToobj(e[i]["children"]),n[e[i].id]=e[i],t)n[t[a].id]=t[a];else n[e[i].id]=e[i];return n},getBread:function(e,t){if("undefined"==typeof t[e])return!1;var n=[];n[n.length]=t[e];var i="undefined"!=typeof t[e]["pid"]?t[e]["pid"]:0;while(i)n[n.length]=t[i],i="undefined"!=typeof t[i]["pid"]?t[i]["pid"]:0;return n},getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:""}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=U.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},K=J,W=(n("d614"),Object(d["a"])(K,P,q,!1,null,"0c871572",null)),Z=W.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("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"}})])])},X=[],Y={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ee=Y,te=(n("d49d"),Object(d["a"])(ee,Q,X,!1,null,"49e15297",null)),ne=te.exports,ie={components:{Breadcrumb:Z,Hamburger:ne},computed:Object(N["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(V["a"])(Object(A["a"])().mark((function t(){return Object(A["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 1:case"end":return t.stop()}}),t)})))()}}},ae=ie,re=(n("b55f"),Object(d["a"])(ae,F,D,!1,null,"bfe8efa0",null)),se=re.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[n("div",{staticClass:"current_thme"},[n("a",{staticClass:"current_thme_main",attrs:{href:"/",target:"_blank"}},[n("svg",{staticStyle:{width:"2.2em",height:"2.2em","vertical-align":"middle",fill:"currentColor",overflow:"hidden"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6885"}},[n("path",{attrs:{d:"M512 519.38651473m-485.95124768 0a485.95124768 485.95124768 0 1 0 971.90249536 0 485.95124768 485.95124768 0 1 0-971.90249536 0Z",fill:"#0dd566","p-id":"6886"}}),n("path",{attrs:{d:"M532.58350642 289.14975575l185.14742539 370.32956157a22.97855183 22.97855183 0 0 1-30.78848264 30.8579042l-164.73747299-81.63980958a23.04797347 23.04797347 0 0 0-20.44466318 0l-164.737473 81.63980958a22.97855183 22.97855183 0 0 1-30.78848259-30.8579042l185.14742535-370.32956157a23.04797347 23.04797347 0 0 1 41.20172366 0z",fill:"#FFFFFF","p-id":"6887"}})]),n("span",{staticClass:"verMiddle"},[e._v(e._s(e.supportedThemes))])])]),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical","default-openeds":e.openedsindex},on:{open:e.handleOpen}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1),n("div",[n("a",{staticClass:"router-link-active",attrs:{href:"/",target:"_blank"}},[n("li",{staticClass:"el-menu-item submenu-title-noDropdown",staticStyle:{"padding-left":"20px",color:"rgb(191, 203, 217)","background-color":"rgb(43, 50, 69)"},attrs:{role:"menuitem",tabindex:"-1"}},[n("svg",{staticClass:"svg-icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-link"}})]),n("span",[e._v("前端展示页面")])])])]),n("div",{staticClass:"current_version"},[e._v("version:"+e._s(e.versions))])],1)],1)},ce=[],ue=(n("159b"),n("e439"),n("d81d"),n("4a9d")),de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[e.item.class&&"file"==e.item.class?n("a",{staticClass:"el_submenu_link",attrs:{index:e.resolvePath(e.item.path),href:"#"+e.resolvePath(e.item.path)}}):e._e(),n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2)]:[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},le=[],he=n("df7c"),me=n.n(he);n("ac1f"),n("00b4");function pe(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var fe,ve,be={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,r=[];return i&&(i.includes("el-icon")?r.push(e("i",{class:[i,"sub-el-icon"]})):r.push(e("svg-icon",{attrs:{"icon-class":i}}))),a&&r.push(e("span",{slot:"title"},[a])),r}},ge=be,we=(n("f15b"),Object(d["a"])(ge,fe,ve,!1,null,"18eeea00",null)),xe=we.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},ye=[],Oe={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return pe(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},Ce=Oe,Te=Object(d["a"])(Ce,_e,ye,!1,null,null,null),ke=Te.exports,Me={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},ze={name:"SidebarItem",components:{Item:xe,AppLink:ke},mixins:[Me],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(N["a"])(Object(N["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return pe(e)?e:pe(this.basePath)?this.basePath:me.a.resolve(this.basePath,e)}}},Se=ze,je=Object(d["a"])(Se,de,le,!1,null,null,null),Ee=je.exports,He=n("cf1e"),Be=n.n(He),$e={components:{SidebarItem:Ee},created:function(){this.getmunusdata(),this.getconfig()},mounted:function(){ue["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:R,openedsindex:[]}},computed:Object(N["a"])(Object(N["a"])({},Object(m["b"])(["sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,i=window.location.href;return-1!=i.indexOf("?id")?i.split("/#")[1]:t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Be.a},isCollapse:function(){return!this.sidebar.opened},versions:function(){return this.$store.state.settings.configMain.version},supportedThemes:function(){return this.$store.state.settings.configMain.supportedThemes}}),methods:{menuopeneds:function(){var e=this;window.setTimeout((function(){e.openedsindex=["/filemange/index"]}),400)},SplicingMenuTree:function(e){var t=this,n=null,i=[];return e.forEach((function(e){n={path:"/filemange/subfile?id="+e.id,meta:{title:e.directory},class:"file",id:e.id,pid:e.pid,children:[]},e.directories&&e.directories.length>0&&(n.children=t.SplicingMenuTree(e.directories)),i.push(n)})),i},getconfig:function(){var e=this;Object(E["b"])().then((function(t){var n=t.data,i=n.data;if(1==n.code){var a={version:i.version,currentTheme:i.currentTheme,admin_supportedFileTypes:i.admin_supportedFileTypes,admin_maxUploadFileSize:i.admin_maxUploadFileSize,admin_maxUploadFileNumber:i.admin_maxUploadFileNumber};if(a.currentTheme=Object.getOwnPropertyDescriptor(i.supportedThemes,a.currentTheme).value,i.admin_supportedFileTypes){var r=null;a.admin_supportedFileTypes=i.admin_supportedFileTypes.map((function(e,t,n){return-1!=e.indexOf("jpeg")&&(r=".jpg"),"."+e.split("/")[1]})),r&&a.admin_supportedFileTypes.push(r)}e.$store.dispatch("settings/configMain",a)}})).catch((function(t){Object(E["i"])(e,t)}))},getmunusdata:function(){var e=this;Object(E["e"])().then((function(t){var n=t.data;e.routes[1].children=[],1==n.code&&(e.routes[1].children=e.SplicingMenuTree(n.data.menus))})).catch((function(t){Object(E["i"])(e,t)}))},handleOpen:function(e,t){}}},Le=$e,Ae=(n("8be4"),Object(d["a"])(Le,oe,ce,!1,null,null,null)),Ve=Ae.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},De=[],Ne={name:"AppMain",computed:{key:function(){return this.$route.path}}},Pe=Ne,qe=(n("5099"),Object(d["a"])(Pe,Fe,De,!1,null,null,null)),Ie=qe.exports,Ue=document,Ge=Ue.body,Re=992,Je={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ut.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(ut.dispatch("app/toggleDevice","mobile"),ut.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Ge.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},ab5e:function(e,t,n){"use strict";n("495d")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(o);t["default"]=o},b55f:function(e,t,n){"use strict";n("0259")},b775:function(e,t,n){"use strict";var i=n("bc3a"),a=i["a"].create({headers:{"Content-Type":"multipart/form-data"},timeout:0});t["a"]=a},c24f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"l",(function(){return l})),n.d(t,"j",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"k",(function(){return v}));var i=n("b775"),a=n("5f87");function r(e){return Object(i["a"])({url:"/api/captcha",method:"post",data:e})}function s(e,t){t.response?e.$message({showClose:!0,message:t.response.data.err,type:"error"}):t.request?e.$message({showClose:!0,message:t.request,type:"error"}):e.$message({showClose:!0,message:t.message,type:"error"}),t.response&&401==t.response.status&&(Object(a["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath)))}function o(){return Object(i["a"])({url:"/api/config",method:"get"})}function c(e){return Object(i["a"])({url:"/api/login",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/api/ls",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/api/mkdir",method:"post",data:e})}function l(e,t){return Object(i["a"])({url:"/api/uploadbase64",method:"post",data:e,onUploadProgress:t})}function h(e){return Object(i["a"])({url:"/api/rmdir",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/api/delete",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/api/rename",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/api/move",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/api/switchtheme/",method:"post",data:e})}},c496:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d49d:function(e,t,n){"use strict";n("da64")},d614:function(e,t,n){"use strict";n("fc2b")},d7ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},da64:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},eb1b:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},f15b:function(e,t,n){"use strict";n("28e8")},f782:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(o);t["default"]=o},fc2b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
diff --git a/dist/static/js/app.ddece848.js b/dist/static/js/app.ddece848.js
deleted file mode 100644
index 1421bdf..0000000
--- a/dist/static/js/app.ddece848.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0259":function(e,t,n){},"18f0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"30c3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},"495d":function(e,t,n){},"4a9d":function(e,t,n){"use strict";var i=n("2b0e"),a=new i["default"];t["a"]=a},"4df5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});s.a.add(o);t["default"]=o},5099:function(e,t,n){"use strict";n("721c")},"51ff":function(e,t,n){var i={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var i=n("2b0e"),a=n("5c96"),r=n.n(a),s=(n("0fae"),n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),o=[],c={name:"App"},u=c,d=n("2877"),l=Object(d["a"])(u,s,o,!1,null,null,null),h=l.exports,m=n("2f62"),p=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),f=p,v=n("a78e"),b=n.n(v),g={sidebar:{opened:!b.a.get("sidebarStatus")||!!+b.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},w={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?b.a.set("sidebarStatus",1):b.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){b.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},x={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:g,mutations:w,actions:x},y=n("83d6"),O=n.n(y),C=O.a.showSettings,k=O.a.fixedHeader,T=O.a.sidebarLogo,z={showSettings:C,fixedHeader:k,sidebarLogo:T,configMain:{version:"",supportedThemes:"",admin_supportedFileTypes:".jpg, .jpeg, .png, .gif, .webp",admin_maxUploadFileSize:5242870,admin_maxUploadFileNumber:5}},M={CONFIG_DATA:function(e,t){e.configMain.version=t.version,e.configMain.supportedThemes=t.currentTheme,e.configMain.admin_supportedFileTypes=t.admin_supportedFileTypes,e.configMain.admin_maxUploadFileSize=t.admin_maxUploadFileSize,e.configMain.admin_maxUploadFileNumber=t.admin_maxUploadFileNumber}},S={configMain:function(e,t){var n=e.commit;n("CONFIG_DATA",t)}},j={namespaced:!0,state:z,mutations:M,actions:S},H=(n("d3b7"),n("498a"),n("c24f")),B=n("5f87"),E=(n("3ca3"),n("ddb0"),n("8c4f")),$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},[n("div",{staticClass:"toptitle clearfix"},[e._m(0),n("div",{staticClass:"rightk tpriht"},[n("el-button",{staticClass:"quit",attrs:{id:"tuichu",size:"mini",round:""},nativeOn:{click:function(t){return e.logout(t)}}},[e._v("退出")])],1)]),n("div",{staticClass:"content_main"},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{staticClass:"navbar_main",class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)])},L=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a",{staticClass:"leftk",attrs:{href:"javascript:;"}},[i("img",{attrs:{src:n("7b07"),alt:"图片"}}),i("em",{staticClass:"erectline"}),i("span",[e._v("文件后台管理系统")])])}],A=n("c7eb"),V=n("1da1"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),n("breadcrumb",{staticClass:"breadcrumb-container"})],1)},D=[],P=n("5530"),q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.breadcrumbq?n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1):n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{"separator-class":"el-icon-arrow-right"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList2,(function(t){return n("el-breadcrumb-item",{key:t.path},[n("a",{attrs:{href:"#"+t.path}},[e._v(e._s(t.meta.title))])])})),1)],1)},N=[],I=(n("4de4"),n("99af"),n("bd11")),U=n.n(I),G=[{id:"0",path:"/homepage",meta:{title:"首页",icon:"dashboard"}},{id:"1",path:"/filemange/index",class:"file",meta:{title:"文件管理",icon:"el-icon-s-help"},children:[]},{id:"2",path:"/usermange/index",meta:{title:"用户管理",icon:"form"}},{id:"3",path:"/systme",meta:{title:"系统管理",icon:"dashboard"},children:[{id:"3-1",path:"changepass",meta:{title:"修改密码",icon:"table"}},{id:"3-2",path:"userrelated",meta:{title:"用户相关",icon:"tree"}},{id:"3-3",path:"switchtheme",meta:{title:"皮肤更换",icon:"tree"}}]}],R=G,J={data:function(){return{levelList:null,breadcrumbq:!0,getcrumbsData:R,levelList2:[]}},watch:{$route:function(){this.ifbreadshow()},getcrumbsData:{handler:function(e,t){this.extractChild=this.arrToobj(e),this.ifbreadshow()},deep:!0}},created:function(){this.extractChild=null},computed:{},methods:{ifbreadshow:function(){var e=window.location.href,t=null,n=null;if(-1!=e.indexOf("filemange")){for(var i in this.extractChild)if(1==this.extractChild[i].id){n=this.extractChild[i];break}-1!=e.indexOf("?id")?(t=e.split("?id=")[1],this.levelList2=this.getBread(t,this.extractChild),this.levelList2.reverse()):this.levelList2=[],this.levelList2.unshift(n),this.breadcrumbq=!1}else this.breadcrumbq=!0,this.getBreadcrumb()},arrToobj:function(e){var t,n={};for(var i in e)if("undefined"!=typeof e[i]["children"])for(var a in t=this.arrToobj(e[i]["children"]),n[e[i].id]=e[i],t)n[t[a].id]=t[a];else n[e[i].id]=e[i];return n},getBread:function(e,t){if("undefined"==typeof t[e])return!1;var n=[];n[n.length]=t[e];var i="undefined"!=typeof t[e]["pid"]?t[e]["pid"]:0;while(i)n[n.length]=t[i],i="undefined"!=typeof t[i]["pid"]?t[i]["pid"]:0;return n},getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:""}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=U.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},K=J,W=(n("d614"),Object(d["a"])(K,q,N,!1,null,"0c871572",null)),Z=W.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("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"}})])])},X=[],Y={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ee=Y,te=(n("d49d"),Object(d["a"])(ee,Q,X,!1,null,"49e15297",null)),ne=te.exports,ie={components:{Breadcrumb:Z,Hamburger:ne},computed:Object(P["a"])({},Object(m["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(V["a"])(Object(A["a"])().mark((function t(){return Object(A["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 1:case"end":return t.stop()}}),t)})))()}}},ae=ie,re=(n("b55f"),Object(d["a"])(ae,F,D,!1,null,"bfe8efa0",null)),se=re.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[n("div",{staticClass:"current_thme"},[n("a",{staticClass:"current_thme_main",attrs:{href:"/",target:"_blank"}},[n("svg",{staticStyle:{width:"2.2em",height:"2.2em","vertical-align":"middle",fill:"currentColor",overflow:"hidden"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6885"}},[n("path",{attrs:{d:"M512 519.38651473m-485.95124768 0a485.95124768 485.95124768 0 1 0 971.90249536 0 485.95124768 485.95124768 0 1 0-971.90249536 0Z",fill:"#0dd566","p-id":"6886"}}),n("path",{attrs:{d:"M532.58350642 289.14975575l185.14742539 370.32956157a22.97855183 22.97855183 0 0 1-30.78848264 30.8579042l-164.73747299-81.63980958a23.04797347 23.04797347 0 0 0-20.44466318 0l-164.737473 81.63980958a22.97855183 22.97855183 0 0 1-30.78848259-30.8579042l185.14742535-370.32956157a23.04797347 23.04797347 0 0 1 41.20172366 0z",fill:"#FFFFFF","p-id":"6887"}})]),n("span",{staticClass:"verMiddle"},[e._v(e._s(e.supportedThemes))])])]),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical","default-openeds":e.openedsindex},on:{open:e.handleOpen}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1),n("div",[n("a",{staticClass:"router-link-active",attrs:{href:"/",target:"_blank"}},[n("li",{staticClass:"el-menu-item submenu-title-noDropdown",staticStyle:{"padding-left":"20px",color:"rgb(191, 203, 217)","background-color":"rgb(43, 50, 69)"},attrs:{role:"menuitem",tabindex:"-1"}},[n("svg",{staticClass:"svg-icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":"#icon-link"}})]),n("span",[e._v("前端展示页面")])])])]),n("div",{staticClass:"current_version"},[e._v("version:"+e._s(e.versions))])],1)],1)},ce=[],ue=(n("159b"),n("e439"),n("d81d"),n("4a9d")),de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[e.item.class&&"file"==e.item.class?n("a",{staticClass:"el_submenu_link",attrs:{index:e.resolvePath(e.item.path),href:"#"+e.resolvePath(e.item.path)}}):e._e(),n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2)]:[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},le=[],he=n("df7c"),me=n.n(he);n("ac1f"),n("00b4");function pe(e){return/^(https?:|mailto:|tel:)/.test(e)}n("caad"),n("2532");var fe,ve,be={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,r=[];return i&&(i.includes("el-icon")?r.push(e("i",{class:[i,"sub-el-icon"]})):r.push(e("svg-icon",{attrs:{"icon-class":i}}))),a&&r.push(e("span",{slot:"title"},[a])),r}},ge=be,we=(n("f15b"),Object(d["a"])(ge,fe,ve,!1,null,"18eeea00",null)),xe=we.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},ye=[],Oe={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return pe(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},Ce=Oe,ke=Object(d["a"])(Ce,_e,ye,!1,null,null,null),Te=ke.exports,ze={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Me={name:"SidebarItem",components:{Item:xe,AppLink:Te},mixins:[ze],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(P["a"])(Object(P["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return pe(e)?e:pe(this.basePath)?this.basePath:me.a.resolve(this.basePath,e)}}},Se=Me,je=Object(d["a"])(Se,de,le,!1,null,null,null),He=je.exports,Be=n("cf1e"),Ee=n.n(Be),$e={components:{SidebarItem:He},created:function(){this.getmunusdata(),this.getconfig()},mounted:function(){ue["a"].$on("mkdirSuccess",this.getmunusdata);var e=window.location.href;-1!=e.indexOf("filemange/index")&&this.menuopeneds()},data:function(){return{routes:R,openedsindex:[]}},computed:Object(P["a"])(Object(P["a"])({},Object(m["b"])(["sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path,i=window.location.href;return-1!=i.indexOf("?id")?i.split("/#")[1]:t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ee.a},isCollapse:function(){return!this.sidebar.opened},versions:function(){return this.$store.state.settings.configMain.version},supportedThemes:function(){return this.$store.state.settings.configMain.supportedThemes}}),methods:{menuopeneds:function(){var e=this;window.setTimeout((function(){e.openedsindex=["/filemange/index"]}),400)},SplicingMenuTree:function(e){var t=this,n=null,i=[];return e.forEach((function(e){n={path:"/filemange/subfile?id="+e.id,meta:{title:e.directory},class:"file",id:e.id,pid:e.pid,children:[]},e.directories&&e.directories.length>0&&(n.children=t.SplicingMenuTree(e.directories)),i.push(n)})),i},getconfig:function(){var e=this;Object(H["b"])().then((function(t){var n=t.data,i=n.data;if(1==n.code){var a={version:i.version,currentTheme:i.currentTheme,admin_supportedFileTypes:i.admin_supportedFileTypes,admin_maxUploadFileSize:i.admin_maxUploadFileSize,admin_maxUploadFileNumber:i.admin_maxUploadFileNumber};if(a.currentTheme=Object.getOwnPropertyDescriptor(i.supportedThemes,a.currentTheme).value,i.admin_supportedFileTypes){var r=null;a.admin_supportedFileTypes=i.admin_supportedFileTypes.map((function(e,t,n){return-1!=e.indexOf("jpeg")&&(r=".jpg"),"."+e.split("/")[1]})),r&&a.admin_supportedFileTypes.push(r)}e.$store.dispatch("settings/configMain",a)}})).catch((function(t){Object(H["i"])(e,t)}))},getmunusdata:function(){var e=this;Object(H["e"])().then((function(t){var n=t.data;e.routes[1].children=[],1==n.code&&(e.routes[1].children=e.SplicingMenuTree(n.data.menus))})).catch((function(t){Object(H["i"])(e,t)}))},handleOpen:function(e,t){}}},Le=$e,Ae=(n("8be4"),Object(d["a"])(Le,oe,ce,!1,null,null,null)),Ve=Ae.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},De=[],Pe={name:"AppMain",computed:{key:function(){return this.$route.path}}},qe=Pe,Ne=(n("5099"),Object(d["a"])(qe,Fe,De,!1,null,null,null)),Ie=Ne.exports,Ue=document,Ge=Ue.body,Re=992,Je={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ut.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(ut.dispatch("app/toggleDevice","mobile"),ut.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Ge.getBoundingClientRect();return e.width-1'});s.a.add(o);t["default"]=o},ab5e:function(e,t,n){"use strict";n("495d")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(o);t["default"]=o},b55f:function(e,t,n){"use strict";n("0259")},b775:function(e,t,n){"use strict";var i=n("bc3a"),a=i["a"].create({headers:{"Content-Type":"multipart/form-data"},timeout:0});t["a"]=a},c24f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"l",(function(){return l})),n.d(t,"j",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"k",(function(){return v}));var i=n("b775"),a=n("5f87");function r(e){return Object(i["a"])({url:"/api/captcha",method:"post",data:e})}function s(e,t){t.response?e.$message({showClose:!0,message:t.response.data.err,type:"error"}):t.request?e.$message({showClose:!0,message:t.request,type:"error"}):e.$message({showClose:!0,message:t.message,type:"error"}),t.response&&401==t.response.status&&(Object(a["b"])(),e.$router.push("/login?redirect=".concat(e.$route.fullPath)))}function o(){return Object(i["a"])({url:"/api/config",method:"get"})}function c(e){return Object(i["a"])({url:"/api/login",method:"post",data:e})}function u(e){return Object(i["a"])({url:"/api/ls",method:"post",data:e})}function d(e){return Object(i["a"])({url:"/api/mkdir",method:"post",data:e})}function l(e,t){return Object(i["a"])({url:"/api/uploadbase64",method:"post",data:e,onUploadProgress:t})}function h(e){return Object(i["a"])({url:"/api/rmdir",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/api/delete",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/api/rename",method:"post",data:e})}function f(e){return Object(i["a"])({url:"/api/move",method:"post",data:e})}function v(e){return Object(i["a"])({url:"/api/switchtheme/",method:"post",data:e})}},c496:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#2b3245",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d49d:function(e,t,n){"use strict";n("da64")},d614:function(e,t,n){"use strict";n("fc2b")},d7ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(o);t["default"]=o},da64:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},eb1b:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});s.a.add(o);t["default"]=o},f15b:function(e,t,n){"use strict";n("28e8")},f782:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),r=n("21a1"),s=n.n(r),o=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});s.a.add(o);t["default"]=o},fc2b:function(e,t,n){}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);
\ No newline at end of file
diff --git a/dist/static/js/chunk-21359588.fa3c756c.js b/dist/static/js/chunk-21359588.fa3c756c.js
new file mode 100644
index 0000000..9b86fa5
--- /dev/null
+++ b/dist/static/js/chunk-21359588.fa3c756c.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21359588"],{"1e39":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$store.dispatch("settings/thmename",e.skinlabel),n.$message({showClose:!0,message:i.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:i.err,type:"error"}),e.skinloading=!1})).catch((function(n){e.skinloading=!1,Object(a["i"])(e,n)}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("4e75"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);n["default"]=c.exports},"4e75":function(e,n,t){"use strict";t("7b94")},"7b94":function(e,n,t){},"857a":function(e,n,t){var i=t("1d80"),s=/"/g;e.exports=function(e,n,t,a){var l=String(i(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,""")+'"'),o+">"+l+""+n+">"}},9911:function(e,n,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(e){return s(this,"a","href",e)}})},af03:function(e,n,t){var i=t("d039");e.exports=function(e){return i((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}}}]);
\ No newline at end of file
diff --git a/dist/static/js/chunk-755f3784.57a0ed31.js b/dist/static/js/chunk-755f3784.57a0ed31.js
deleted file mode 100644
index f69d026..0000000
--- a/dist/static/js/chunk-755f3784.57a0ed31.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-755f3784"],{"1e39":function(n,e,t){"use strict";t.r(e);var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[n._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[n._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:n.selectbian},model:{value:n.skinvalue,callback:function(e){n.skinvalue=e},expression:"skinvalue"}},n._l(n.options,(function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:n.skinloading,type:"primary"},on:{click:n.skinSubmit}},[n._v("提交")]),n.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:n.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[n._v("查看"+n._s(n.skinlabel)+"站点")])],1):n._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var n=this,e=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$message({showClose:!0,message:i.msg,type:"success"}),n.skinAsk=!0,l["a"].$emit("mkdirSuccess")):e.$message({showClose:!0,message:i.err,type:"error"}),n.skinloading=!1})).catch((function(e){n.skinloading=!1,Object(a["i"])(n,e)}))},selectbian:function(n){var e=this;this.options.forEach((function(t){t.value==n&&(e.skinlabel=t.label,e.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("5129"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);e["default"]=c.exports},5129:function(n,e,t){"use strict";t("97b4")},"857a":function(n,e,t){var i=t("1d80"),s=/"/g;n.exports=function(n,e,t,a){var l=String(i(n)),o="<"+e;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,""")+'"'),o+">"+l+""+e+">"}},"97b4":function(n,e,t){},9911:function(n,e,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(n){return s(this,"a","href",n)}})},af03:function(n,e,t){var i=t("d039");n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}}}]);
\ No newline at end of file
diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js
index 9021006..117f002 100644
--- a/src/store/modules/settings.js
+++ b/src/store/modules/settings.js
@@ -30,6 +30,10 @@ const mutations = {
state.configMain.admin_supportedFileTypes = configdata.admin_supportedFileTypes
state.configMain.admin_maxUploadFileSize = configdata.admin_maxUploadFileSize
state.configMain.admin_maxUploadFileNumber = configdata.admin_maxUploadFileNumber
+ },
+
+ THME_NAME: (state, name) => {
+ state.configMain.supportedThemes = name
}
}
@@ -40,6 +44,11 @@ const actions = {
configMain({ commit }, configdata) {
//console.log(configdata);
commit('CONFIG_DATA', configdata)
+ },
+
+ thmename({ commit }, name) {
+ //console.log(configdata);
+ commit('THME_NAME', name)
}
}
diff --git a/src/views/systme/switchtheme.vue b/src/views/systme/switchtheme.vue
index 97d2b2f..393e7a8 100644
--- a/src/views/systme/switchtheme.vue
+++ b/src/views/systme/switchtheme.vue
@@ -74,6 +74,7 @@ export default {
let datamain = response.data;
if (datamain.code == 1) {
+ this.$store.dispatch('settings/thmename', this.skinlabel)
thiss.$message({showClose: true,message: datamain.msg,type: 'success'});
//this.subloading = false;
this.skinAsk = true;