style: 控制台输出版本号
This commit is contained in:
@@ -11,7 +11,7 @@ VITE_APP_NAME = "核心网管理平台"
|
|||||||
VITE_APP_CODE = "CoreNet"
|
VITE_APP_CODE = "CoreNet"
|
||||||
|
|
||||||
# 应用版本
|
# 应用版本
|
||||||
VITE_APP_VERSION = "2.231107.7"
|
VITE_APP_VERSION = "2.231108.7"
|
||||||
|
|
||||||
# 接口基础URL地址-不带/后缀
|
# 接口基础URL地址-不带/后缀
|
||||||
VITE_API_BASE_URL = "/omc-api"
|
VITE_API_BASE_URL = "/omc-api"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import 'dayjs/locale/zh-cn';
|
|||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import useAppStore from '@/store/modules/app';
|
import useAppStore from '@/store/modules/app';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
const { currentLocale } = useI18n();
|
const { t, currentLocale } = useI18n();
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
|
|
||||||
dayjs.locale('zh-cn'); // 默认中文
|
dayjs.locale('zh-cn'); // 默认中文
|
||||||
@@ -38,7 +38,7 @@ watch(currentLocale, val => {
|
|||||||
|
|
||||||
// 输出应用版本号
|
// 输出应用版本号
|
||||||
console.info(
|
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: #fadfa3; background: #030307; padding: 4px 0;',
|
||||||
'color: #030307; background: #fadfa3; padding: 4px 0;'
|
'color: #030307; background: #fadfa3; padding: 4px 0;'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user