vue-request
vue-request copied to clipboard
[Bug Report] undefined injectedGlobalOptions
Bug 描述 Bug description
In the usePagination function we are running into the problem that injectedGlobalOptions
are undefined in this line
pagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption !== void 0 ? _injectedGlobalOption : {}
When just replacing injectedGlobalOptions.pagination
with injectedGlobalOptions?.pagination
it works.
代码重现 Reproduce
I honestly dont know how to reproduce it.
期望结果 Desired result
No undefined error and breaking the code.