安装完jira-dev-tool
以后,浏览器运行时报错
The mocking is still enabled, but it's highly recommended that you update your Service Worker by running:
$ npx msw init <PUBLIC_DIR>
This is necessary to ensure that the Service Worker is in sync with the library to guarantee its stability.
If this message still persists after updating, please report an issue: https://github.com/open-draft/msw/issues
然后运行 npx msw init ./public
以后错误消失,但不论是/login
还是/register
均显示mock failed
解锁 React17 高阶用法,轻松应对大型复杂长周期项目
了解课程