变量定义,title优化

This commit is contained in:
Gary Fu
2023-12-24 13:22:36 +08:00
parent 6696f56ee5
commit f4f25798b9
7 changed files with 19 additions and 6 deletions

View File

@@ -1,9 +1,13 @@
<script setup>
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
import { $changeLocale, elementLocale } from '@/messages'
import { $changeLocale, elementLocale, $i18nBundle } from '@/messages'
import { useTitle } from '@vueuse/core'
import { computed } from 'vue'
const globalConfigStore = useGlobalConfigStore()
$changeLocale(globalConfigStore.currentLocale)
const title = computed(() => $i18nBundle('common.label.title'))
useTitle(title)
</script>
<template>