From 075ae253a159d2e42397ddbe6632c7a2dde21712 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:48:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BD=E9=99=85=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9=20(#1872)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/index.ts | 13 +++++-------- frontend/src/lang/modules/en.ts | 2 ++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 08ef20f64..12080f99c 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -18,16 +18,13 @@ class RequestHttp { service: AxiosInstance; public constructor(config: AxiosRequestConfig) { this.service = axios.create(config); - let language = globalStore.language === 'tw' ? 'zh-Hant' : globalStore.language; this.service.interceptors.request.use( (config: AxiosRequestConfig) => { - if (config.method != 'get') { - config.headers = { - 'X-CSRF-TOKEN': globalStore.csrfToken, - 'Accept-Language': language, - ...config.headers, - }; - } + let language = globalStore.language === 'tw' ? 'zh-Hant' : globalStore.language; + config.headers = { + 'Accept-Language': language, + ...config.headers, + }; return { ...config, }; diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 7f9432ac7..4a9e76cff 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -667,6 +667,8 @@ const message = { startIn: ' to start', }, cronjob: { + create: 'Create Cronjob', + edit: 'Edit Cronjob', cronTask: 'Cronjob', changeStatus: 'Change status', disableMsg: