import{_ as B}from"./index.f1422708.js";import{D,F as E,N as g,w as h}from"./element-plus.55d71530.js";import{_ as b}from"./picker.33f9b871.js";import{a as w,b as y}from"./user.0e824082.js";import{d as n,_ as A,aq as V,o as s,c as k,V as e,M as r,u as i,a,O as x,L as S,S as N}from"./@vue.96c135a1.js";import"./index.e2bd5212.js";import"./@vueuse.f4694335.js";import"./lodash.d6737109.js";import"./@amap.8a62addd.js";import"./axios.c6b9fe3d.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.7f53c13d.js";import"./color.4952d479.js";import"./clone.dd01d7ea.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./dayjs.37feae28.js";import"./@element-plus.07bd0514.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.e651cfa0.js";import"./index.cd0dc544.js";import"./index.vue_vue_type_script_setup_true_lang.39bbbfbb.js";import"./index.54e5bacf.js";import"./index.00eda3af.js";import"./index.vue_vue_type_script_setup_true_lang.bc0f922f.js";import"./usePaging.af60c1ec.js";import"./vue3-video-play.f32fd690.js";import"./vuedraggable.7c3813d2.js";import"./vue.19f894a8.js";import"./sortablejs.a173b1ef.js";const U={class:"user-setup"},j=a("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),q=a("div",null,[a("div",{class:"form-tips"}," \u7528\u6237\u6CE8\u518C\u65F6\u7ED9\u7684\u9ED8\u8BA4\u5934\u50CF\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A400*400\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F ")],-1),I=n({name:"userSetup"}),xt=n({...I,setup(L){const t=A({default_avatar:""}),u=async()=>{try{const o=await w();for(const m in t)t[m]=o[m]}catch(o){console.log("\u83B7\u53D6=>",o)}},l=async()=>{try{await y(t),u()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return u(),(o,m)=>{const _=b,p=D,c=E,d=g,f=h,F=B,C=V("perms");return s(),k("div",U,[e(d,{shadow:"never",class:"!border-none"},{default:r(()=>[j,e(c,{ref:"formRef",model:i(t),"label-width":"120px"},{default:r(()=>[e(p,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:r(()=>[a("div",null,[e(_,{modelValue:i(t).default_avatar,"onUpdate:modelValue":m[0]||(m[0]=v=>i(t).default_avatar=v),limit:1},null,8,["modelValue"])])]),_:1}),e(p,null,{default:r(()=>[q]),_:1})]),_:1},8,["model"])]),_:1}),x((s(),S(F,null,{default:r(()=>[e(f,{type:"primary",onClick:l},{default:r(()=>[N("\u4FDD\u5B58")]),_:1})]),_:1})),[[C,["setting.user.user/setConfig"]]])])}}});export{xt as default};
