优化:将《我的归档》时间轴内容项按升序排序

This commit is contained in:
2022-08-06 12:14:56 +08:00
parent 8ddd4ad0c8
commit 09b5fd524e
2 changed files with 24 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
import DefaultTheme from 'vitepress/theme'
import MyLayout from "./MyLayout.vue"
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
import { Timeline } from '@arco-design/web-vue'
import '@arco-design/web-vue/es/timeline/style/css.js'
import 'element-plus/dist/index.css'
import ArcoVue from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'
import ArticleMetadata from './components/ArticleMetadata.vue'
import Tag from './components/Tag.vue'
import Archive from './components/Archive.vue'
@@ -14,10 +14,13 @@ export default {
...DefaultTheme,
Layout: MyLayout,
enhanceApp({ app }) {
// 屏蔽警告信息
app.config.warnHandler = () => null
// 全局注册ElementPlus
app.use(ElementPlus)
// 全局注册ArcoDesign时间轴组件
app.use(Timeline)
// 全局注册ArcoDesignVue
app.use(ArcoVue)
app.component('ArticleMetadata', ArticleMetadata)
app.component('Tag', Tag)