添加ssg标题
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user