edu/pc/app.vue

36 lines
858 B
Vue
Raw Normal View History

2023-01-09 11:02:20 +00:00
<script lang="ts" setup>
import { ID_INJECTION_KEY, ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { useAppStore } from './stores/app'
provide(ID_INJECTION_KEY, {
prefix: 100,
current: 0
})
const config = {
locale: zhCn
}
const appStore = useAppStore()
2023-01-10 07:57:36 +00:00
const { pcTitle, pcIco, pcKeywords, pcDesc } = appStore.getWebsiteConfig
2023-01-09 11:02:20 +00:00
useHead({
2023-01-10 07:57:36 +00:00
title: pcTitle,
2023-01-09 11:02:20 +00:00
meta: [
2023-01-10 07:57:36 +00:00
{ name: 'description', content: pcDesc },
{ name: 'keywords', content: pcKeywords }
2023-01-09 11:02:20 +00:00
],
link: [
{
rel: 'icon',
2023-01-10 07:57:36 +00:00
href: pcIco
2023-01-09 11:02:20 +00:00
}
]
})
</script>
<template>
<ElConfigProvider v-bind="config">
<NuxtLayout>
<NuxtLoadingIndicator color="#4a5dff" :height="2" />
<NuxtPage />
</NuxtLayout>
</ElConfigProvider>
</template>