style: 控制台输出版本号
This commit is contained in:
@@ -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;'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user