-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有没有请求的例子 #25
Comments
在 service/api/demo 里面有两个示例:fetchDictionary、fetchDictionaryWithMiddleware async function testApi() { testApi(); //按照上面的调用一下 |
666 感谢🙏 |
请求函数前面加个 await |
牛啊~ 可以了。我好好学习 下你的代码 |
大佬还有问题想请教下,如果有多个请求地址应该怎么改呢,还有怎么加请求代理呢。 |
|
代理的话,需要在vite.config.ts添加配置,参照文档:https://cn.vitejs.dev/config/#server-proxy |
谢谢,说的很详细,看明白了。哈哈 |
0.0 你这种写法 我看了半天 不知道请求要怎么写了
The text was updated successfully, but these errors were encountered: