import{_ as p}from"./BaseForm.vue_vue_type_script_setup_true_lang-51c9d898-1778929502341v=1.0.0.js";import{a as g}from"./processReleaseApi-51d788e8-1778929502341v=1.0.0.js";import{u as _}from"./useFormEdit-1c6a5713-1778929502341v=1.0.0.js";import{d as f,r as l,e as v,o as C,f as x,w as P,g as b,h as u,H as i,K as m}from"./index-17740f03-1778929502341v=1.0.0.js";import"./index-ea94a5ac-1778929502341v=1.0.0.js";import"./processTypeApi-5bf19841-1778929502341v=1.0.0.js";import"./tabs-07c00c0d-1778929502341v=1.0.0.js";const w=f({name:"processReleaseAdd"}),U=f({...w,setup(y){const{closeCurrent:r}=_(),t=l({title:"",publish_time:"",content:"",file:[]}),a=l(!1),c=()=>{r()};l("");const d=async o=>{a.value=!0;try{let e=g,n="\u65B0\u589E\u6210\u529F";o.file=o.fileStr;let s=await e(o);s.code==200?(m({type:"success",message:`${n}!`}),r()):m.warning(s.msg),a.value=!1}catch{a.value=!1}};return(o,e)=>{const n=v("PaIndexPage");return C(),x(n,null,{default:P(()=>[b(p,{value:u(t),"onUpdate:value":e[0]||(e[0]=s=>i(t)?t.value=s:null),loading:u(a),"onUpdate:loading":e[1]||(e[1]=s=>i(a)?a.value=s:null),onCancel:c,onSubmit:d},null,8,["value","loading"])]),_:1})}}});export{U as default};
