-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
request.js 文件依赖import store from '@/store',会导致编译循环依赖RangeError: Maximum call stack size exceeded #6
Comments
作者大大,那现在vue cli官方都没人去修,我们现在怎么办? |
经测试没有你描述的问题发生,你可以看一下提交内容。确实有引用到这两个方法,并且这个两个方法的引用在 TableList.vue 也用到了。 |
import { getRoleList, getServiceList } from '@/api/manage' 你可以放到其他page文件,比如workplace.vue 就会编译出上面错误的,作者大大有联系方式可以交流下吗? |
你也可以尝试在 request.js 里去掉
|
这是注释掉“你也可以尝试在 request.js 里去掉 import store from '@/store' 以及 21 行的”之后尝试的吗 |
没注释哦,你可以拉完整代码在你本地跑试试 |
将
换成
可以跑成功 0.0 @BarronLin 不知道对你有无用 |
比如把这个import { getRoleList, getServiceList } from '@/api/manage' 放到任何一个vue文件引用,都会报错。
The text was updated successfully, but these errors were encountered: