-
login函数是我包装的一个函数如下: 这可能并不算一个问题,只是更新后vscode里一直标红,很别扭,看看是否有优化的空间,谢谢! |
Beta Was this translation helpful? Give feedback.
Answered by
JOU-amjs
Jul 24, 2024
Replies: 1 comment
-
在ts中使用的话, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
manortec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在ts中使用的话,
alovaInstance.Post
没有指定返回数据类型默认就是unknown
,这其实也是在提示你可能忘记指定数据类型了,如果你不想指定则给它一个any即可,像这样alovaInstance.Post<any>(...)