diff --git a/.env.production b/.env.production index 63b07183..7b1b3ea5 100644 --- a/.env.production +++ b/.env.production @@ -11,7 +11,7 @@ VITE_APP_NAME = "核心网管理平台" VITE_APP_CODE = "CoreNet" # 应用版本 -VITE_APP_VERSION = "2.231107.7" +VITE_APP_VERSION = "2.231108.7" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/src/App.vue b/src/App.vue index d0f6f93a..a35b7e1f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@ import 'dayjs/locale/zh-cn'; import { ref, watch } from 'vue'; import useAppStore from '@/store/modules/app'; import useI18n from '@/hooks/useI18n'; -const { currentLocale } = useI18n(); +const { t, currentLocale } = useI18n(); const appStore = useAppStore(); dayjs.locale('zh-cn'); // 默认中文 @@ -38,7 +38,7 @@ watch(currentLocale, val => { // 输出应用版本号 console.info( - `%c ${appStore.appName} %c ${appStore.appCode} - ${appStore.appVersion} `, + `%c ${t('common.title')} %c ${appStore.appCode} - ${appStore.appVersion} `, 'color: #fadfa3; background: #030307; padding: 4px 0;', 'color: #030307; background: #fadfa3; padding: 4px 0;' );