WokerTask/public/admin/assets/setup.2887f60c.js

2 lines
3.0 KiB
JavaScript

import{_ as B}from"./index.744f8721.js";import{C as D,D as E,I as g,w as h}from"./element-plus.9816852d.js";import{_ as b}from"./picker.4761e5aa.js";import{a as w,b as y}from"./user.a0234e79.js";import{d as n,$ as A,af as k,o as s,c as V,U as e,L as r,u as a,a as i,M as x,K as S,R as U}from"./@vue.51d7f2d8.js";import"./index.4eaf9bd5.js";import"./@vueuse.ec90c285.js";import"./lodash.675f209e.js";import"./@amap.8a62addd.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./@element-plus.a074d1f6.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./index.d79ab099.js";import"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import"./index.8155eb0b.js";import"./index.e2376454.js";import"./index.vue_vue_type_script_setup_true_lang.e9eaddcf.js";import"./usePaging.2ad8e1e6.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.a2066cae.js";import"./vue.3348ef2c.js";import"./sortablejs.85a0be55.js";const N={class:"user-setup"},j=i("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),I=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),R=n({name:"userSetup"}),jt=n({...R,setup(K){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(()=>[I]),_: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{jt as default};