mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
变量定义,title优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user