添加ssg标题

This commit is contained in:
李志鹏
2026-06-02 15:08:17 +08:00
parent 2e35fd4de9
commit 10d593e23f
8 changed files with 54 additions and 1 deletions

View File

@@ -29,13 +29,14 @@
</div>
</template>
<script setup lang="ts">
import { useHead } from '@unhead/vue'
import { computed, ref } from 'vue'
import listEn from './list-en.js'
import listZhCn from './list-zh-cn.js'
import listZhTw from './list-zh-tw.js'
import { LangType } from '../../lang'
import { useI18n } from 'vue-i18n'
const { locale } = useI18n()
const { t, locale } = useI18n()
const allList = computed(() => {
if (locale.value === LangType.zhCn) {
return listZhCn
@@ -109,6 +110,9 @@
const reg = new RegExp(Object.keys(tokens).join('|'), 'g')
return format.replace(reg, (match) => tokens[match])
}
useHead({
title: t('MainHeader.Media') + ' - Code-Create'
})
</script>
<style scoped lang="less">