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: