提交 f95ebe76 编写于 作者: Q qq_38870145

Sun Jan 7 23:11:00 CST 2024 inscode

上级 b887d2b3
<script setup>
import {reactive,onMounted} from 'vue'
import CommitLine from './commit/index.vue'
import ArticleBar from './article/index.vue'
import Author from '../Author.vue'
import HubPie from './hub/index.vue'
import {articleData} from './data/data.js'
const state=reactive({
title:'',
articleData:[]
})
const getRenderBarData= ()=>{
state.articleData=[...articleData]
state.articleData.sort((a,b)=>new Date(a.postTime)-new Date(b.postTime))
}
onMounted(()=>{
getRenderBarData()
})
</script>
<template>
<div style="padding:20px;">
<Author/>
<div>
{{state.title}}
<div>
<CommitLine />
<ArticleBar :tableData="state.articleData" />
<HubPie />
</div>
</div>
</div>
</template>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册