We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
写为如下方式
import { Link, request ,useRequest} from 'umi'; ... const { data, error, loading } = useRequest({ url: '/api/changeUsername', method: 'post', });
会抛出url不是string的异常。
**import { useRequest } from '@umijs/hooks';** const { data, error, loading } = useRequest({ url: '/api/changeUsername', method: 'post',
此种方式没有异常。不知道有没有人处理呢? umijs下面发现引用了不同版本的use-request,一个是hook,另一直接引用use-request。
The text was updated successfully, but these errors were encountered:
在 #97 修复,今天更新。
Sorry, something went wrong.
No branches or pull requests
写为如下方式
会抛出url不是string的异常。
此种方式没有异常。不知道有没有人处理呢?
umijs下面发现引用了不同版本的use-request,一个是hook,另一直接引用use-request。
The text was updated successfully, but these errors were encountered: