From 80dc439c6514c6cba5d79367b1b52898e4a0bf82 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 12 Oct 2022 15:19:17 +0800 Subject: [PATCH] fix: i18n --- framework/sdk-parent/frontend/src/i18n/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/sdk-parent/frontend/src/i18n/index.js b/framework/sdk-parent/frontend/src/i18n/index.js index 3989edae5d..261dae053b 100644 --- a/framework/sdk-parent/frontend/src/i18n/index.js +++ b/framework/sdk-parent/frontend/src/i18n/index.js @@ -1,6 +1,5 @@ import Vue from 'vue'; import VueI18n from "vue-i18n"; -import {request} from "../plugins/request"; Vue.use(VueI18n); // 直接加载翻译的语言文件 @@ -43,7 +42,6 @@ const importLanguage = lang => { const setLang = lang => { localStorage.setItem('language', lang) i18n.locale = lang; - request.defaults.headers.common['Accept-Language'] = lang.replace("_", "-"); } export const setLanguage = lang => {