multiStoreAdmin/build/store/assets/setup.1851ee13.js

2 lines
2.9 KiB
JavaScript

import{_ as B}from"./index.189d8be3.js";import{D,F as E,I as g,w as h}from"./element-plus.9175fe58.js";import{_ as b}from"./picker.0630e4ea.js";import{a as w,b as y}from"./user.0e2be70c.js";import{d as n,a0 as A,am as k,o as s,c as V,W as e,O as r,u as i,a,P as x,M as S,T as N}from"./@vue.c3e77981.js";import"./index.669f9987.js";import"./@vueuse.a48d0173.js";import"./lodash.6c5d06b3.js";import"./axios.13991fdc.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.12c58ce2.js";import"./nprogress.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.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.c7b1c52d.js";import"./index.ad8825bc.js";import"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import"./index.d5a98515.js";import"./index.a26fd36c.js";import"./index.vue_vue_type_script_setup_true_lang.5e44b2ed.js";import"./usePaging.d25ebf19.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.39068026.js";import"./vue.ecf7f5ee.js";import"./sortablejs.a3e32c99.js";const U={class:"user-setup"},j=a("div",{class:"font-medium mb-7"},"\u57FA\u672C\u8BBE\u7F6E",-1),I=a("div",null,[a("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),T=n({name:"userSetup"}),xt=n({...T,setup(M){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",U,[e(d,{shadow:"never",class:"!border-none"},{default:r(()=>[j,e(c,{ref:"formRef",model:i(t),"label-width":"120px"},{default:r(()=>[e(p,{label:"\u7528\u6237\u9ED8\u8BA4\u5934\u50CF"},{default:r(()=>[a("div",null,[e(_,{modelValue:i(t).default_avatar,"onUpdate:modelValue":m[0]||(m[0]=v=>i(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(()=>[N("\u4FDD\u5B58")]),_:1})]),_:1})),[[C,["setting.user.user/setConfig"]]])])}}});export{xt as default};