style: 控制台输出版本号

This commit is contained in:
TsMask
2023-11-08 16:50:39 +08:00
parent de48ffa10c
commit 4688634205
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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;'
);