code refactor

This commit is contained in:
MaysWind
2023-07-10 00:14:33 +08:00
parent 5e986b2d04
commit 8f44a26037
7 changed files with 37 additions and 7 deletions
+5 -1
View File
@@ -2,7 +2,7 @@
<div class="layout-wrapper">
<router-link to="/">
<div class="auth-logo d-flex align-start gap-x-3">
<img alt="logo" class="login-page-logo" src="/img/ezbookkeeping-192.png" />
<img alt="logo" class="login-page-logo" :src="ezBookkeepingLogoPath" />
<h1 class="font-weight-medium leading-normal text-2xl">{{ $t('global.app.title') }}</h1>
</div>
</router-link>
@@ -248,6 +248,7 @@ import { useSettingsStore } from '@/stores/setting.js';
import { useTransactionCategoriesStore } from '@/stores/transactionCategory.js';
import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
import assetConstants from '@/consts/asset.js';
import categoryConstants from '@/consts/category.js';
import { getNameByKeyValue, copyArrayTo } from '@/lib/common.js';
@@ -296,6 +297,9 @@ export default {
},
computed: {
...mapStores(useRootStore, useSettingsStore, useTransactionCategoriesStore, useExchangeRatesStore),
ezBookkeepingLogoPath() {
return assetConstants.ezBookkeepingLogoPath;
},
allLanguages() {
return this.$locale.getAllLanguageInfoArray(false);
},