suyuan-breed/public/admin/assets/setup.2fc7a09c.js

2 lines
2.9 KiB
JavaScript
Raw Normal View History

2024-01-15 09:23:49 +08:00
import{_ as v}from"./index.05b2207b.js";import{C as B,D,J as E,w as g}from"./element-plus.0aa2c80d.js";import{_ as h}from"./picker.6ad46102.js";import{a as b,b as w}from"./user.2a4fde99.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.8b40bb9d.js";import"./@vueuse.d3d080b7.js";import"./lodash.e92d81a1.js";import"./axios.4ebfdb3f.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./@element-plus.d6eabd08.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.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.664390f6.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.3838d2e5.js";import"./index.87da80fb.js";import"./index.vue_vue_type_script_setup_true_lang.0cb948f8.js";import"./index.4435e7d0.js";import"./index.b70ec4f9.js";import"./index.vue_vue_type_script_setup_true_lang.c8459f18.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.38d35928.js";import"./vue.c38777e7.js";import"./sortablejs.8626b931.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),J=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(()=>[J]),_:1})]),_:1})),[[F,["setting.user.user/setConfig"]]])])}}});export{Nt as default};