import{ae as h,r as g,s as _,t as v,v as t,B as u,F as y,Q as k,z as x,ar as V,D as b,E as B,al as Q,at as q}from"./index.dbb19167.js";import{u as w}from"./use-quasar.e38d66e0.js";const I={__name:"EditInfo",setup(C){const e=w(),c=b(),d=B(),o=h(),l=c.query.field,s=g(o.user.field),i={name:{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0"}};function p(){e.loading.show(),Q.changeNickname({[l]:s.value}).then(a=>{e.notify({type:"positive",message:a.message||"\u4FEE\u6539\u6210\u529F"}),o.refresh(),d.back()}).catch(a=>{e.notify({type:"negative",message:a.message})}).finally(()=>{e.loading.hide()})}return(a,n)=>{const f=q("page-layout");return _(),v(f,null,{"header-right":t(()=>[u(k,{flat:"",dense:"",onClick:p},{default:t(()=>[y("\u4FDD\u5B58")]),_:1})]),default:t(()=>{var r;return[u(V,{modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=m=>s.value=m),placeholder:((r=i[x(l)])==null?void 0:r.placeholder)||"\u8BF7\u8F93\u5165",class:"bg-white q-px-md",clearable:"",borderless:"",dense:""},null,8,["modelValue","placeholder"])]}),_:1})}}};export{I as default};