2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
var u=(p,m,t)=>new Promise((i,f)=>{var n=e=>{try{o(t.next(e))}catch(c){f(c)}},_=e=>{try{o(t.throw(e))}catch(c){f(c)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(n,_);o((t=t.apply(p,m)).next())});import{g as b}from"./index-WZgdqsLO.js";import{a4 as y,au as d,av as l}from"./bootstrap-C9BmG51-.js";import{_ as P}from"./base-info.vue_vue_type_script_setup_true_lang-CLQ5m3hV.js";import k from"./profile-user-CYthb79h.js";import{_ as w}from"./reset-pwd.vue_vue_type_script_setup_true_lang-C5u31cKP.js";import{_ as h}from"./user-social.vue_vue_type_script_setup_true_lang-DuTYJyO6.js";import{_ as x}from"./page.vue_vue_type_script_setup_true_lang-Bdcvy_-N.js";import{m as S,b9 as v,v as U,ab as N,b2 as T,bJ as r,ae as $,j as a,u as s}from"../jse/index-index-CxaxR0XO.js";import"./dict-enum-CaHgMaDZ.js";import"./index-D8TEmnHa.js";import"./index-eg7PGYg3.js";import"./use-modal-BPId65Z3.js";import"./x-DMdfXCrF.js";import"./index-BoZNzlS-.js";import"./biz-system-enum-Ci18uvnT.js";import"./AlertBuilder-lq4-N96w.js";import"./circle-check-big-D4UY0844.js";const g={class:"flex"},Q=S({__name:"index",setup(p){const m=y(),t=v("basicInfo"),i=v();function f(){return u(this,null,function*(){i.value=yield b()})}function n(){return u(this,null,function*(){yield f(),yield m.fetchUserInfo()})}return U(f),(_,o)=>(T(),N(s(x),{"auto-content-height":""},{default:r(()=>[$("div",g,[a(s(d),{class:"w-2/5",title:"个人信息"},{default:r(()=>[a(k,{profile:i.value,onSuccess:n},null,8,["profile"])]),_:1}),a(s(d),{class:"ml-3 w-3/5"},{default:r(()=>[a(s(l),{"active-key":t.value,"onUpdate:activeKey":o[1]||(o[1]=e=>t.value=e),class:"-mt-4"},{default:r(()=>[a(s(l).TabPane,{key:"basicInfo",tab:"基本设置"},{default:r(()=>[a(P,{profile:i.value,onSuccess:n},null,8,["profile"])]),_:1}),a(s(l).TabPane,{key:"resetPwd",tab:"密码设置"},{default:r(()=>[a(w)]),_:1}),a(s(l).TabPane,{key:"userSocial",tab:"社交绑定","force-render":""},{default:r(()=>[a(h,{"onUpdate:activeName":o[0]||(o[0]=e=>t.value=e)})]),_:1})]),_:1},8,["active-key"])]),_:1})])]),_:1}))}});export{Q as default};
|