数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
557 B

import{q as g,D as m,a9 as u,S as f,aa as y}from"./index-ea7eee8a.js";const h=n=>new Promise((t,a)=>{if(!n)return a();g("designById",{id:n}).then(e=>{var r;const o=e.data,s=m(o.data);(r=s.config)!=null&&r.style&&u("screenStyle",s.config.style,!0),t(s)}).catch(e=>{f.error(e.message||"加载异常"),a()})}),p=(n,t,a,e)=>new Promise((o,s)=>{let r={};typeof a=="function"&&(r=a({})),g(n,r,{method:e}).then(c=>{const i=c.data;let l;t&&(typeof t=="function"?l=t(i):l=y(t,i)),o(l||i)}).catch(c=>{f.error(c.message||"加载异常"),s()})});export{p as a,h as g};