diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 9d3c570..9f551a4 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -2,6 +2,7 @@ import { h, watch } from 'vue' // import Theme from 'vitepress/theme' import DefaultTheme from 'vitepress/theme-without-fonts' +import Download from '../../components/Download.vue' import './style.css' import './rainbow.css' @@ -16,6 +17,7 @@ export default { }, enhanceApp(ctx) { DefaultTheme.enhanceApp(ctx) + ctx.app.component('Download', Download) if (typeof window === 'undefined') return diff --git a/4.人工智能/4.3.1.1程序示例——maze迷宫解搜索.md b/4.人工智能/4.3.1.1程序示例——maze迷宫解搜索.md index ad70497..4f7cc94 100644 --- a/4.人工智能/4.3.1.1程序示例——maze迷宫解搜索.md +++ b/4.人工智能/4.3.1.1程序示例——maze迷宫解搜索.md @@ -4,6 +4,10 @@ 完成习题 ::: +::: tip 📥 +本节附件下载 +::: + /4.人工智能/code/MAZE.zip # Node diff --git a/4.人工智能/code/Read.md b/4.人工智能/code/Read.md deleted file mode 100644 index 9bd0f06..0000000 --- a/4.人工智能/code/Read.md +++ /dev/null @@ -1 +0,0 @@ -这里存放示例代码和作业 diff --git a/components/Download.vue b/components/Download.vue new file mode 100644 index 0000000..2e163be --- /dev/null +++ b/components/Download.vue @@ -0,0 +1,39 @@ + + + + +