vue-request icon indicating copy to clipboard operation
vue-request copied to clipboard

[Bug Report] undefined injectedGlobalOptions

Open FirstSanny opened this issue 1 year ago • 2 comments

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.

其他信息 Other information

FirstSanny avatar Jan 26 '23 10:01 FirstSanny