import{w as S}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{E as x}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as v,a as c,ah as l,m as F,M as P,O as t,U as e,u as o,ab as p,ac as f,S as R,ay as h,az as N,q}from"./vendor-98154105-1779868775780v=1.0.0.js";import{_ as z}from"./_plugin-vue_export-helper-8c5478df-1779868775780v=1.0.0.js";import"./index-0f3e2c06-1779868775780v=1.0.0.js";const B=d=>(h("data-v-03970085"),d=d(),N(),d),O=B(()=>q("div",{class:"divider mt20 mb30"},"\u540C\u6B65\u516C\u4F17\u53F7\u914D\u7F6E\u8BBE\u7F6E",-1)),U=v({name:"officialAccountIndex"}),E=v({...U,setup(d){const n=c({token:"",cookie:""}),i=c({xs:24,sm:24,md:24,lg:18,xl:13}),u=c(!1),k=c(),y=c({token:{required:!0,message:"\u8BF7\u8F93\u5165token",trigger:"change"},cookie:{required:!0,message:"\u8BF7\u8F93\u5165cookie",trigger:"change"}}),V=async g=>{g.validate(async(a,_)=>{if(a){u.value=!0;let r=JSON.parse(JSON.stringify(n.value));const s=await S(r);s.code==0?(x.success("\u540C\u6B65\u6210\u529F"),u.value=!1):(u.value=!1,x.error(s.msg))}})};return(g,a)=>{const _=l("el-input"),r=l("el-form-item"),s=l("FormCol"),b=l("el-button"),w=l("FormRow"),C=l("el-form"),I=l("PaIndexPage");return F(),P(I,null,{default:t(()=>[e(C,{model:o(n),ref_key:"ruleFormRef",ref:k,rules:o(y),"scroll-to-error":!0,"label-width":"120px",class:"default-form line_form"},{default:t(()=>[O,e(w,null,{default:t(()=>[e(s,p(f(o(i))),{default:t(()=>[e(r,{label:"token\uFF1A",prop:"token"},{default:t(()=>[e(_,{modelValue:o(n).token,"onUpdate:modelValue":a[0]||(a[0]=m=>o(n).token=m),placeholder:"\u8BF7\u8F93\u5165\u9700\u8981\u66F4\u65B0\u7684\u516C\u4F17\u53F7token"},null,8,["modelValue"])]),_:1})]),_:1},16),e(s,p(f(o(i))),{default:t(()=>[e(r,{label:"cookie\uFF1A",prop:"cookie"},{default:t(()=>[e(_,{modelValue:o(n).cookie,"onUpdate:modelValue":a[1]||(a[1]=m=>o(n).cookie=m),type:"textarea",autosize:{minRows:5},placeholder:"\u8BF7\u8F93\u5165\u9700\u8981\u66F4\u65B0\u7684\u516C\u4F17\u53F7cookie"},null,8,["modelValue"])]),_:1})]),_:1},16),e(s,p(f(o(i))),{default:t(()=>[e(r,null,{default:t(()=>[e(b,{type:"primary",loading:o(u),onClick:a[2]||(a[2]=m=>V(o(k)))},{default:t(()=>[R("\u540C\u6B65")]),_:1},8,["loading"])]),_:1})]),_:1},16)]),_:1})]),_:1},8,["model","rules"])]),_:1})}}});const $=z(E,[["__scopeId","data-v-03970085"]]);export{$ as default};
