| 1 |
- import{b as p,u as a}from"./index-73d4c5eb.js";const n={get(t,o){const e={method:"get",url:t};return o&&(e.params=o),p(e)},post(t,o){const e={method:"post",url:t};return o&&(e.data=o),p(e)},put(t,o){const e={method:"put",url:t};return o&&(e.data=o),p(e)},delete(t,o){const e={method:"delete",url:t};return o&&(e.params=o),p(e)},upload(t,o,e,i){return a(t,o,{headers:{"Content-Type":e},transformRequest:[function(s){return s}],onUploadProgress:s=>{let c=s.loaded/s.total*100|0;i(c)}})}};let r="";const l={loginCode(t){return n.post(`${r}/yos/rest/index/getpassword`,t)},login(t){return n.post(`${r}/yos/rest/index/login`,t)},loginout(t){return n.post(`${r}/yos/rest/index/logout`,t)},loginbyaccount(t){return n.post(`${r}/yos/rest/index/loginbyaccount`,t)},requested(t){return n.post(`${r}/yos/rest/index`,t)},optionstype(t){return n.post(`${r}/yos/rest/index`,{classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:1e3,typename:t,parameter:{}}})}},g=(t,o)=>{const e=t.__vccOpts||t;for(const[i,u]of o)e[i]=u;return e};export{l as A,g as _};
|