You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
var f=(w,i,o)=>new Promise((n,p)=>{var u=e=>{try{s(o.next(e))}catch(r){p(r)}},l=e=>{try{s(o.throw(e))}catch(r){p(r)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(u,l);s((o=o.apply(w,i)).next())});import{r as k,l as b}from"./entry/index-C2Ijy48E-1723706691540.js";import{a as G,B as V}from"./index-fya05jI8.js";import{u as M,_ as $}from"./useForm-fILnWqWp.js";import"./BasicForm.vue_vue_type_style_index_0_lang-D499EpF5.js";import"./componentMap-zBHKqdNc.js";import{aw as v}from"./antd-BY-1PcYE.js";import{d as D,f as y,_ as h,a8 as A,a9 as d,ad as I,u as a,k as x,$ as N,ab as P,ah as U,G as q,a1 as B,F as z}from"./vue-aEZWZQSa.js";import"./useWindowSizeFn-CjdUjzGl.js";import"./FormItem.vue_vue_type_script_lang-CKJUw6EQ.js";import"./helper-D0Efh3UP.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-CVQ-sEzT.js";import"./index-DVy1eUzr.js";import"./useSortable-Bra4jKJL.js";import"./download-Cu3oizbN.js";import"./useLoading-C2GeNIUj.js";import"./copyTextToClipboard-BBFF3Y3I.js";import"./onMountedOrActivated-BIJ0U1R1.js";import"./style-apcQnL4e.js";const ne=D({__name:"index",setup(w){const i=k(),o=v.Group,{t:n}=b(),[p,{closeModal:u}]=G(()=>f(this,null,function*(){S()})),l=y({development:"http://www.a.com",test:"http://www.b.com",prod:"http://www.c.com"}),s=y({display:"flex",height:"30px",lineHeight:"30px"}),[e,{validateFields:r,setFieldsValue:C}]=M({showActionButtonGroup:!1,schemas:[{field:"api",label:n("layout.header.dropdownChangeApi"),colProps:{span:24},defaultValue:"production",required:!0,slot:"api"}]}),F=()=>f(this,null,function*(){const t=yield r();i.setApiAddress({key:t.api,val:l.value[t.api]}),location.reload()}),R=()=>{u()},S=()=>{const{key:t=""}=i.getApiAddress;t&&C({api:t})};return(t,E)=>(h(),A(a(V),I({title:a(n)("layout.header.dropdownChangeApi")},t.$attrs,{onRegister:a(p),onOk:F,onCancel:R}),{default:d(()=>[x(a($),{onRegister:a(e)},{api:d(({model:_,field:g})=>[x(a(o),{value:_[g],"onUpdate:value":c=>_[g]=c},{default:d(()=>[(h(!0),N(z,null,P(l.value,(c,m)=>(h(),A(a(v),{style:U(s.value),value:m,key:m},{default:d(()=>[q(B(m)+": "+B(c),1)]),_:2},1032,["style","value"]))),128))]),_:2},1032,["value","onUpdate:value"])]),_:1},8,["onRegister"])]),_:1},16,["title","onRegister"]))}});export{ne as default};
|