Replies: 3 comments 7 replies
-
同一个问题,生成的包相当于api的管理器,那么其他零散的api希望归集在一起管理。但目前设计似乎倾向于外部api单独管理。 |
Beta Was this translation helpful? Give feedback.
5 replies
-
@czhlin 需要帮忙看看 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Lnncoco 目前是没有拼装URL的功能,你可以直接用 const params = new URLSearchParams(method.config.params || {});
const url = new URL(method.url + '?' + params.toString(), method.baseURL); 第二是关于将零散api归集到Apis中一起管理的想法,这个很不错,我们思考下怎么来设计它会更好。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
比如我有一个URL拼装参数后跳转的场景,调用Apis.xxx()传入参数后,希望不是直接请求,而是获取组装后的URL地址,真正去请求是打开新页面或者由其他组件响应。
Beta Was this translation helpful? Give feedback.
All reactions