suyuan/public/admin/assets/setup.f2893014.js

2 lines
2.9 KiB
JavaScript
Raw Normal View History

2023-12-09 09:49:07 +08:00
import{_ as v}from"./index.b3d3ef39.js";import{C as B,D,I as E,w as g}from"./element-plus.7a22678c.js";import{_ as h}from"./picker.6ba63c06.js";import{a as b,b as w}from"./user.bac62fcf.js";import{d as s,_ as y,ae as A,o as p,c as k,T as e,K as r,L as V,J as x,a as i,R as S}from"./@vue.108c970a.js";import"./index.c1e51f45.js";import"./@vueuse.d3d080b7.js";import"./lodash.ec5da75f.js";import"./axios.eb055ccc.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./@element-plus.d6eabd08.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.06992a2f.js";import"./index.aa0774db.js";import"./index.vue_vue_type_script_setup_true_lang.cabb2d32.js";import"./index.77d6aeff.js";import"./index.623bbb33.js";import"./index.vue_vue_type_script_setup_true_lang.aa7eacaa.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.0b47cde1.js";import"./vue.118acae4.js";import"./sortablejs.9ffc750f.js";const N={class:"user-setup"},U=i("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),j=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),I=S("\u4FDD\u5B58"),R=s({name:"userSetup"}),Nt=s({...R,setup(T){const t=y({default_avatar:""}),a=async()=>{try{const o=await b();for(const m in t)t[m]=o[m]}catch(o){console.log("\u83B7\u53D6=>",o)}},n=async()=>{try{await w(t),a()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return a(),(o,m)=>{const l=h,u=B,_=D,c=E,d=g,f=v,F=A("perms");return p(),k("div",N,[e(c,{shadow:"never",class:"!border-none"},{default:r(()=>[U,e(_,{ref:"formRef",model:t,"label-width":"120px"},{default:r(()=>[e(u,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:r(()=>[i("div",null,[e(l,{modelValue:t.default_avatar,"onUpdate:modelValue":m[0]||(m[0]=C=>t.default_avatar=C),limit:1},null,8,["modelValue"])])]),_:1}),e(u,null,{default:r(()=>[j]),_:1})]),_:1},8,["model"])]),_:1}),V((p(),x(f,null,{default:r(()=>[e(d,{type:"primary",onClick:n},{default:r(()=>[I]),_:1})]),_:1})),[[F,["setting.user.user/setConfig"]]])])}}});export{Nt as default};