umijs ssr接口请求 #6615
Unanswered
yixiaoyan1
asked this question in
Q&A
umijs ssr接口请求
#6615
Replies: 1 comment
-
这么写 Home.getInitialProps = (async (ctx) => {
const data = await Api();
return data
}) as IGetInitialProps; 可以来 segmentfault 关注我 ,有问题随时问我 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问unijs使用ssr,怎么进行进口请求呢,我一直请求不到借口
Beta Was this translation helpful? Give feedback.
All reactions