diff --git a/docs/.vuepress/client.js b/docs/.vuepress/client.js
index f4472028..d74dd557 100644
--- a/docs/.vuepress/client.js
+++ b/docs/.vuepress/client.js
@@ -1,11 +1,16 @@
import {defineClientConfig} from "vuepress/client";
+
import resourceStoreComp from "./components/ResStore.vue";
import pluginStoreComp from "./components/PluginStore.vue";
-//导入element-plus
+import dashComp from "./components/Dash.vue";
+
+
import ElementPlus from 'element-plus';
+
export default defineClientConfig({
enhance: ({app, router, siteData}) => {
+ app.component("dashComp", dashComp);
app.component("resourceStoreComp", resourceStoreComp);
app.component("pluginStoreComp", pluginStoreComp);
app.use(ElementPlus);
diff --git a/docs/.vuepress/components/Dash.vue b/docs/.vuepress/components/Dash.vue
new file mode 100644
index 00000000..f1c752af
--- /dev/null
+++ b/docs/.vuepress/components/Dash.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
Dashboard
+
+
+
+
Online
+
{{ online }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts
index b3273d8f..264b04e8 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vuepress/config.ts
@@ -11,6 +11,7 @@ export default defineUserConfig({
head: [
// 设置 favor.ico,.vuepress/public 下
["script", {src: "/js/style.js", "type": "module"}],
+ ["script", {src: "/js/get_data.js", "type": "module"}],
['link', {rel: 'icon', href: 'https://cdn.liteyuki.icu/favicon.ico'},],
['link', {rel: 'stylesheet', href: 'https://cdn.bootcdn.net/ajax/libs/firacode/6.2.0/fira_code.min.css'}],
diff --git a/docs/.vuepress/public/js/get_data.js b/docs/.vuepress/public/js/get_data.js
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/docs/.vuepress/public/js/get_data.js
@@ -0,0 +1 @@
+
diff --git a/docs/.vuepress/public/js/style.js b/docs/.vuepress/public/js/style.js
index e73b0ddf..58c36d9a 100644
--- a/docs/.vuepress/public/js/style.js
+++ b/docs/.vuepress/public/js/style.js
@@ -1,10 +1,15 @@
function applyStyle() {
+ // 先检测页面中是否有macos-tab,有则不再添加
+ let tabs = document.body.querySelectorAll('.macos-tab')
+ if (tabs.length > 0) {
+ return
+ }
let lineNumbers = document.body.querySelectorAll('[class^="language-"].line-numbers-mode')
lineNumbers.forEach((item) => {
// 插入现成的html文本
let title = item.getAttribute('data-title')
let tabStr =
- "