-
-
Notifications
You must be signed in to change notification settings - Fork 94
[Bug Report] undefined injectedGlobalOptions #182
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
Comments
LuXDAmore
added a commit
to LuXDAmore/vue-request
that referenced
this issue
Jan 8, 2024
fix: undefined injectedGlobalOptions close AttoJS#182
我出现类似问题,最终发现是各个组件库依赖的vue-demi的版本不一致导致的问题 |
我也遇到了类似的问题,出现的情况是没有在正确的inject环境使用,vue-request 应该排除 没有inject的情况时,也能正确使用,比如在一个js文件中使用时 |
John60676
added a commit
that referenced
this issue
Dec 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug 描述 Bug description
In the usePagination function we are running into the problem that
injectedGlobalOptions
are undefined in this linepagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption !== void 0 ? _injectedGlobalOption : {}
When just replacing
injectedGlobalOptions.pagination
withinjectedGlobalOptions?.pagination
it works.代码重现 Reproduce
I honestly dont know how to reproduce it.
期望结果 Desired result
No undefined error and breaking the code.
其他信息 Other information
The text was updated successfully, but these errors were encountered: