Skip to content

Commit 8e8575f

Browse files
committed
feat:优化阅读全文插件
1 parent 225aff2 commit 8e8575f

6 files changed

Lines changed: 252 additions & 126 deletions

File tree

docs/.vuepress/client.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import { defineClientConfig } from "vuepress/client";
22
import { h } from "vue";
33
import LayoutToggle from "./components/LayoutToggle.vue";
4-
import UnlockContent from "./components/unlock/UnlockContent.vue";
54
import GlobalUnlock from "./components/unlock/GlobalUnlock.vue";
5+
import UnlockContent from "./components/unlock/UnlockContent.vue";
66

77
export default defineClientConfig({
88
enhance({ app }) {
9-
// 注册手动解锁组件
109
app.component("UnlockContent", UnlockContent);
1110
},
12-
rootComponents: [
13-
// 全局切换按钮
14-
() => h(LayoutToggle),
15-
// 全局扫码解锁控制器
16-
() => h(GlobalUnlock),
17-
],
11+
rootComponents: [() => h(LayoutToggle), () => h(GlobalUnlock)],
1812
});

0 commit comments

Comments
 (0)