Index-legacy-36db7cd2.js 5.4 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy-7f6656e1.js","./index-legacy-c2eb0980.js"],function(t,n){"use strict";var r,l,a,o,u,c,i,s,f,d,p,m,y,b;return{setters:[function(e){r=e.c,l=e.A,a=e.d,o=e.a,u=e.v,c=e.o,i=e.p,s=e.w,f=e.r,d=e.f,p=e.e,m=e.s,y=e.y},function(e){b=e.i}],execute:function(){var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){g(e,t,n[t])})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e,t){var a=v({},e,t.attrs);return r(l,v({},a,{icon:n}),null)};w.displayName="SettingOutlined",w.inheritAttrs=!1;var h=w,A={style:{"text-align":"center"}};t("default",a({__name:"Index",setup:function(t){var n=o(),l=u({oldpassword:"",password:"",repassword:""}),a=function(e){console.log(e),b.post("/change-password",e).then(function(e){var t=e.data,r=t.code,a=t.result;if(console.log(r,a),0==r)return l.oldpassword="",l.password="",l.repassword="",y.success("密码修改成功,1秒后重新登录"),void setTimeout(function(){n.replace("/login")},1e3);y.error(a)},function(e){console.log("failed",e)})},v=function(e){console.log(e)};return function(t,n){var o=f("a-input-password"),u=f("a-form-item"),y=f("a-button"),b=f("a-form"),g=f("a-result");return c(),i("div",null,[r(g,{status:"info",title:"修改密码"},{icon:s(function(){return[r(d(h))]}),extra:s(function(){return[p("div",A,[r(b,{style:{width:"400px",display:"inline-block"},model:l,name:"basic","label-align":"left","label-col":{span:6},"wrapper-col":{span:18},autocomplete:"off",onFinish:a,onFinishFailed:v},{default:s(function(){return[r(u,{label:"原密码",name:"oldpassword",rules:[{required:!0,message:"请输入原密码!"}]},{default:s(function(){return[r(o,{value:l.oldpassword,"onUpdate:value":n[0]||(n[0]=function(e){return l.oldpassword=e})},null,8,["value"])]}),_:1}),r(u,{label:"新密码",name:"password",rules:[{required:!0,message:"请输入新密码!"}]},{default:s(function(){return[r(o,{value:l.password,"onUpdate:value":n[1]||(n[1]=function(e){return l.password=e})},null,8,["value"])]}),_:1}),r(u,{label:"重复密码",name:"repassword",rules:[{required:!0,message:"请输入重复密码!"}]},{default:s(function(){return[r(o,{value:l.repassword,"onUpdate:value":n[2]||(n[2]=function(e){return l.repassword=e})},null,8,["value"])]}),_:1}),r(u,{"wrapper-col":{offset:0,span:24}},{default:s(function(){return[r(y,{size:"large",block:"",type:"primary","html-type":"submit"},{default:s(function(){return e(n[3]||(n[3]=[m("修改密码",-1)]))}),_:1})]}),_:1})]}),_:1},8,["model"])])]}),_:1})])}}}))}}})}();