← Back
Editing: index-legacy89.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,e,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(t,o,i,u){var a=o&&o.prototype instanceof s?o:s,l=Object.create(a.prototype);return n(l,"_invoke",function(t,n,o){var i,u,a,s=0,l=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,n){return i=t,u=0,a=r,p.n=n,c}};function d(t,n){for(u=t,a=n,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,m=i[2];t>3?(o=m===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=r):i[0]<=d&&((o=t<2&&d<i[1])?(u=0,p.v=n,p.n=i[1]):d<m&&(o=t<3||i[0]>n||n>m)&&(i[4]=t,i[5]=n,p.n=m,u=0))}if(o||t>1)return c;throw f=!0,n}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,m),u=l,a=m;(e=u<2?r:a)||!f;){i||(u?u<3?(u>1&&(p.n=-1),d(u,a)):p.n=a:p.v=a);try{if(s=2,i){if(u||(o="next"),e=i[o]){if(!(e=e.call(i,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,u<2&&(u=0)}else 1===u&&(e=i.return)&&e.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=r}else if((e=(f=p.n<0)?a:t.call(n,p))!==c)break}catch(e){i=r,u=1,a=e}finally{s=1}}return{value:e,done:f}}}(t,i,u),!0),l}var c={};function s(){}function l(){}function f(){}e=Object.getPrototypeOf;var p=[][i]?e(e([][i]())):(n(e={},i,function(){return this}),e),d=f.prototype=s.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=f,n(d,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,i,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:a,m:m}})()}function n(t,r,e,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}n=function(t,r,e,o){function u(r,e){n(t,r,function(t){return this._invoke(r,e,t)})}r?i?i(t,r,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[r]=e:(u("next",0),u("throw",1),u("return",2))},n(t,r,e,o)}function r(t,n,r,e,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?n(c):Promise.resolve(c).then(e,o)}function e(t){return function(){var n=this,e=arguments;return new Promise(function(o,i){var u=t.apply(n,e);function a(t){r(u,o,i,a,c,"next",t)}function c(t){r(u,o,i,a,c,"throw",t)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1765440387","./form-item-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387"],function(n,r){"use strict";var o,i,u,a,c,s,l,f,p,d,m,v,y,g,h,b,w,x,j,_,k,O,F,G,T;return{setters:[function(t){o=t.w,i=t.D,u=t.t,a=t.E,c=t.o,s=t.F,l=t.b,f=t.u,p=t.G,d=t.H,m=t.e},function(t){v=t.F,y=t.a,g=t.b},function(t){h=t.k,b=t.c,w=t.g,x=t.p,j=t.v,_=t.e,k=t.x,O=t.K,F=t.B,G=t.F,T=t.q},null,null],execute:function(){var r=l(),P=r.load,S=r.request,E=h({password1:"",password2:""}),q=function(){var n=e(t().m(function n(){var r,e;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return r=P("正在设置面板密码,请稍候..."),t.p=1,t.n=2,i({password1:u(E.password1),password2:u(E.password2)});case 2:return e=t.v,S(e),e.status&&a("/login?dologin=True",1500),t.a(2,e.status);case 3:t.p=3,t.v;case 4:return t.p=4,r.close(),t.f(4);case 5:return t.a(2)}},n,null,[[1,3,4,5]])}));return function(){return n.apply(this,arguments)}}(),H=function(){E.password1=o(10)},C=function(){var n=e(t().m(function n(){var r;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,c({icon:"warning-filled",title:"危险操作",isHtml:!0,content:'延用上次密码会降低面板的<span class="text-danger">安全性</span>,是否继续操作?'});case 1:return t.n=2,s();case 2:r=t.v,S(r),window.location.href="/",t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}},n,null,[[0,3]])}));return function(){return n.apply(this,arguments)}}(),B=b({__name:"index",setup:function(n){var r,o=f().mainHeight,i=w(function(){return[v(function(){return _("div",{class:"text-center !mb-[22px] flex justify-center"},[_("h3",{class:"text-[2rem] font-bold text-dark inline-block mr-2 mt-12px"},[F("当前面板密码已过期,请立即修改密码!")])])}),y("新的密码","password1",{icon:"el-refresh",iconClick:H,attrs:{placeholder:"请输入新的密码",style:{width:"32rem"}},rules:[{required:!0,message:"请输入新的密码",trigger:["blur","change"]},{min:6,message:"密码长度必须大于5位",trigger:["blur","change"]}]}),g("确认密码","password2",{attrs:{placeholder:"重复输入密码,确认新的密码",style:{width:"32rem"}},rules:[{required:!0,message:"请再次输入密码",trigger:["blur","change"]},{validator:function(t,n,r){n!==E.password1?r(new Error("两次输入密码不一致")):r()},trigger:["blur","change"]}]}),v(function(){return _(G,null,[_(d,{class:"w-[100%] mt-[1.2rem]",type:"primary",onClick:q},{default:function(){return[F("修改密码")]}}),_("div",{class:"flex justify-end mt-1rem"},[_("span",{class:"bt-link",onClick:C},[F("延用上一次密码")])])])})]}),u=p({data:function(){return E},options:i,submit:(r=e(t().m(function n(r,e){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e();case 1:return t.a(2,q())}},n)})),function(t,n){return r.apply(this,arguments)})}),a=u.BtForm;return x(H),function(t,n){return T(),j("div",{class:"flex flex-col items-center mt-[8%]",style:O({"min-height":k(o)-200+"px"})},[_(k(a),{size:"default",class:"bind-user-info w-[44rem] bind-form"})],4)}}});n("default",m(B,[["__scopeId","data-v-2fd5dff2"]]))}}})}();
Save File
Cancel