添加网站TDK设置获取功能
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="ma-auto w-1440px">
|
||||
<SeoHead :title="tdkData?.title" :description="tdkData?.describe" :keywords="tdkData?.keywork" />
|
||||
<!-- 搜索 -->
|
||||
<KlSearch></KlSearch>
|
||||
<!-- 菜单 -->
|
||||
@ -29,6 +30,12 @@
|
||||
import PopularDrawings from '~/pages/home/components/PopularDrawings.vue'
|
||||
import Leaderboard from '~/pages/home/components/Leaderboard.vue'
|
||||
import LearningRecommendations from '~/pages/home/components/LearningRecommendations.vue'
|
||||
import { getTDK } from '~/api/home/index'
|
||||
|
||||
const { data: tdkData } = useAsyncData('get-tdk-home', async () => {
|
||||
const res = await getTDK()
|
||||
return res.data
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user