2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
|
import{_ as B}from"./index.0bad999c.js";import{F as D,G as E,J as g,w as h}from"./element-plus.ab0703f2.js";import{_ as b}from"./picker.e2faf95e.js";import{a as w,b as y}from"./user.10056a62.js";import{d as n,$ as A,ap as k,o as s,c as V,W as e,Q as r,u as a,a as i,R as x,P as S,U}from"./@vue.340249d8.js";import"./index.ae42b2c0.js";import"./@vueuse.e3650918.js";import"./lodash.3d784a58.js";import"./axios.45058a27.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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"./@element-plus.558a564d.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./lodash-es.edba6135.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.2a3b95e2.js";import"./index.abcb45ca.js";import"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import"./index.7b77b14a.js";import"./index.d461d664.js";import"./index.vue_vue_type_script_setup_true_lang.9909e290.js";import"./usePaging.fff444fa.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.5c3595e9.js";import"./vue.75cf012d.js";import"./sortablejs.dcbae258.js";const N={class:"user-setup"},j=i("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),R=i("div",null,[i("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),G=n({name:"userSetup"}),St=n({...G,setup(I){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=k("perms");return s(),V("div",N,[e(d,{shadow:"never",class:"!border-none"},{default:r(()=>[j,e(c,{ref:"formRef",model:a(t),"label-width":"120px"},{default:r(()=>[e(p,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:r(()=>[i("div",null,[e(_,{modelValue:a(t).default_avatar,"onUpdate:modelValue":m[0]||(m[0]=v=>a(t).default_avatar=v),limit:1},null,8,["modelValue"])])]),_:1}),e(p,null,{default:r(()=>[R]),_:1})]),_:1},8,["model"])]),_:1}),x((s(),S(F,null,{default:r(()=>[e(f,{type:"primary",onClick:l},{default:r(()=>[U("\u4FDD\u5B58")]),_:1})]),_:1})),[[C,["setting.user.user/setConfig"]]])])}}});export{St as default};
|