diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 86bc3524..97cc0cbd 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,8 +1,9 @@ import { defineUserConfig } from '@vuepress/cli'; import { defaultTheme } from '@vuepress/theme-default'; import { docsearchPlugin } from '@vuepress/plugin-docsearch'; -import { pwaPopupPlugin } from '@vuepress/plugin-pwa-popup' -import { pwaPlugin } from '@vuepress/plugin-pwa' +import { pwaPopupPlugin } from '@vuepress/plugin-pwa-popup'; +import { pwaPlugin } from '@vuepress/plugin-pwa'; +import { backToTopPlugin } from '@vuepress/plugin-back-to-top' import { navbar, sidebar } from './configs'; export default defineUserConfig({ @@ -87,6 +88,7 @@ export default defineUserConfig({ buttonText: '刷新', }, }, - }) + }), + backToTopPlugin() ], }); diff --git a/package.json b/package.json index 11474b0f..15900a96 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@vuepress/plugin-docsearch": "2.0.0-beta.53", "@vuepress/plugin-pwa": "2.0.0-beta.53", "@vuepress/plugin-pwa-popup": "2.0.0-beta.53", + "@vuepress/plugin-back-to-top": "2.0.0-beta.53", "@webank/eslint-config-webank": "^1.2.3", "chokidar": "^3.5.2", "commitizen": "^4.2.1",