data_center/public/admin/assets/setup.c6fe2a33.js

2 lines
2.9 KiB
JavaScript

import{_ as v}from"./index.e75f4c41.js";import{C as B,D,I as E,w as g}from"./element-plus.bb5d129a.js";import{_ as h}from"./picker.3c05fae0.js";import{a as b,b as w}from"./user.90e32967.js";import{d as s,$ as y,af as A,o as p,c as k,U as e,L as r,M as V,K as x,a as i,S}from"./@vue.e8706010.js";import"./index.69ffdd93.js";import"./@vueuse.1e5a6e21.js";import"./lodash.5226da61.js";import"./axios.ba5f746b.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./@element-plus.196c7323.js";import"./nprogress.cc41886d.js";import"./vue-clipboard3.7988db4f.js";import"./clipboard.cb7a871d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./lodash-es.29c53eac.js";import"./dayjs.c5177e7a.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.a82f0063.js";import"./index.dbc95a91.js";import"./index.vue_vue_type_script_setup_true_lang.cb18df50.js";import"./index.dff175ed.js";import"./index.214f57a6.js";import"./index.vue_vue_type_script_setup_true_lang.8129ffa5.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.26a22b59.js";import"./vue.65cbc413.js";import"./sortablejs.26e78ba5.js";const U={class:"user-setup"},N=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"),K=s({name:"userSetup"}),Ut=s({...K,setup(L){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",U,[e(c,{shadow:"never",class:"!border-none"},{default:r(()=>[N,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{Ut as default};