refactor: i18n

* refactor: i18n
This commit is contained in:
啝裳
2022-03-11 21:28:43 +08:00
committed by GitHub
parent 8b3f642cf2
commit 494ce8f41b
31 changed files with 608 additions and 479 deletions

View File

@@ -14,7 +14,7 @@
<component
:is="useRenderIcon(item.meta?.icon ?? 'bookmark-2-line')"
></component>
<span class="result-item-title">{{ $t(item.meta?.title) }}</span>
<span class="result-item-title">{{ t(item.meta?.title) }}</span>
<enterOutlined />
</div>
</template>
@@ -23,10 +23,13 @@
<script lang="ts" setup>
import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
import enterOutlined from "/@/assets/svg/enter_outlined.svg?component";
const { t } = useI18n();
interface optionsItem {
path: string;
meta?: {