Skip to content

Commit ba714a1

Browse files
SkyBird233MingcongBai
authored andcommitted
feat: redirect /aoscc to /aoscc/2025
1 parent 633e23a commit ba714a1

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/pages/aoscc/AosccIndex.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const articleComponent = ref();
77
88
articleComponent.value = defineAsyncComponent(() =>
99
//@ts-ignore
10-
import('./articles/2025-info.zh.md').catch((err) => {
10+
import('./articles/2025.zh.md').catch((err) => {
1111
console.error('Article not found:', err);
1212
error.value = err;
1313
})
@@ -38,7 +38,6 @@ articleComponent.value = defineAsyncComponent(() =>
3838
<page-not-found />
3939
</template>
4040
<template v-else>
41-
<category-second v-if="!error" title="AOSCC 2025" class="mb-6" />
4241
<component class="vuepress-markdown-body" :is="articleComponent" />
4342
</template>
4443
</div>

src/pages/aoscc/articles/2025-info.zh.md renamed to src/pages/aoscc/articles/2025.zh.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description: AOSCC 2025 参会信息及日程安排
44
date: 2025-06-11
55
---
66

7+
## AOSCC 2025
8+
79
::: info
810

911
由于注册人数[远超预期](/news/detail/2025-06-27-aoscc-2025-registration-suspended.zh-cn.md),AOSCC 2025 注册已提前截止。

src/router.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ const router = createRouter({
188188
}
189189
},
190190
{
191-
path: '/aoscc',
192-
name: 'aoscc',
193-
component: AosccIndex,
194-
meta: {
195-
title: 'AOSCC'
196-
}
191+
path:'/aoscc',
192+
redirect:'/aoscc/2025'
193+
},
194+
{
195+
path: '/aoscc/2025',
196+
component: AosccIndex
197197
},
198198
{
199199
path: '/aoscc/:slug',

0 commit comments

Comments
 (0)