This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch feat-improvement in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
commit 0d14ef06055bc31341a1ab0232879f0705a6289e Author: juzhiyuan <[email protected]> AuthorDate: Wed Oct 21 16:17:43 2020 +0800 feat: update global request --- src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index b437cc9..5aafc1c 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -66,7 +66,7 @@ export const request: RequestConfig = { credentials: 'same-origin', requestInterceptors: [ (url, options) => { - const newOptions = options; + const newOptions = { ...options }; newOptions.headers = { ...options.headers, Authorization: localStorage.getItem('token') || '',
