From 70cb16f0a284c36dcb8cfbaf3bc467d426fbcfe3 Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Wed, 18 Aug 2021 08:26:52 +0800 Subject: Fix some visual bugs of the notification center --- frontend/src/apis/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontend/src/apis/index.ts') diff --git a/frontend/src/apis/index.ts b/frontend/src/apis/index.ts index eb91fe87c..9c66aa4ab 100644 --- a/frontend/src/apis/index.ts +++ b/frontend/src/apis/index.ts @@ -52,8 +52,10 @@ class Api { ); } - danger_resetApi(apikey: string) { - this.axios.defaults.headers.common["X-API-KEY"] = apikey; + _resetApi(apikey: string) { + if (process.env.NODE_ENV !== "production") { + this.axios.defaults.headers.common["X-API-KEY"] = apikey; + } } handleError(code: number) { -- cgit v1.2.3