We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Mock 修改不起作用呢,另外console.log也无法打印信息。请教一下如何修改Mock数据,还有如何调试,万分感谢。
The text was updated successfully, but these errors were encountered:
最新版本5.2.0 经查看umijs文档后,将package.json中命令行“start:dev”的MOCK=none去掉即可开启mock
Sorry, something went wrong.
app.tsx 文件中的 baseURL 注释掉,或者根据 isDev 判断:
app.tsx
baseURL
isDev
/** * @name request 配置,可以配置错误处理 * 它基于 axios 和 ahooks 的 useRequest 提供了一套统一的网络请求和错误处理方案。 * @doc https://umijs.org/docs/max/request#配置 */ export const request: RequestConfig = { baseURL: isDev ? '' : 'https://proapi.azurewebsites.net', ...errorConfig, };
No branches or pull requests
Mock 修改不起作用呢,另外console.log也无法打印信息。请教一下如何修改Mock数据,还有如何调试,万分感谢。
The text was updated successfully, but these errors were encountered: