feat: clean urls

This commit is contained in:
camera-2018
2023-08-19 11:49:08 +08:00
parent 850a692f4e
commit 36e4f30ee4
4 changed files with 6 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ export default withMermaid({
title: "HDU-CS-WIKI",
description: "HDU 计算机科学讲义",
lastUpdated: true,
cleanUrls: true,
head: [['script', { async: "async", src: 'https://umami.hdu-cs.wiki/script.js', "data-website-id": "3f11687a-faae-463a-b863-6127a8c28301", "data-domains": "wiki.xyxsw.site,hdu-cs.wiki" }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config

View File

@@ -26,7 +26,7 @@ export default {
watch(
() => ctx.router.route.data.relativePath,
() => updateHomePageStyle(location.pathname === '/' || location.pathname === '/contributors.html'),
() => updateHomePageStyle(location.pathname === '/' || location.pathname === '/contributors'),
{ immediate: true },
)
},

View File

@@ -81,7 +81,7 @@ CTF还有的缺点也是目前热门领域的通病发展速度过快
更多可以参考计算安全章节
[传送门](/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8.html)
[传送门](/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8)
## 数据科学竞赛

3
vercel.json Normal file
View File

@@ -0,0 +1,3 @@
{
"cleanUrls": true
}