From 477baf3ea588e5d2ac5f91c992dd30d2e7d3c6e7 Mon Sep 17 00:00:00 2001 From: wurongjie Date: Fri, 31 Mar 2023 14:03:35 +0800 Subject: [PATCH] fix: doc footer type config error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docFooter应该传递对象而不是对象数组 Log: --- docs/.vitepress/{config.js => config.ts} | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) rename docs/.vitepress/{config.js => config.ts} (98%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.ts similarity index 98% rename from docs/.vitepress/config.js rename to docs/.vitepress/config.ts index b54462b..ad48373 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.ts @@ -83,12 +83,10 @@ export default defineConfig({ ], }, ], - docFooter: [ - { - prev: '上一页', - next: '下一页' - } - ], + docFooter: { + prev: '上一页', + next: '下一页' + }, darkModeSwitchLabel: '浅色/深色模式', outlineTitle: '此页的大纲', sidebarMenuLabel: '菜单',