From cc121d6f9ff86c7fd20ea6e7da459f24d273d7de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 5 Oct 2024 11:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E6=9D=90=E6=96=99Wiki=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF=E6=8C=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E7=AD=9B=E9=80=89&=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 24 +--- src/components/wiki/two-material.vue | 17 +-- src/pages/WIKI/Material.vue | 181 ++++++++++++++++++++++----- src/pages/common/News.vue | 2 +- 4 files changed, 162 insertions(+), 62 deletions(-) diff --git a/src/App.vue b/src/App.vue index e9065435..41307cce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -60,11 +60,7 @@ onBeforeMount(async () => { async function checkResize(): Promise { const screen = await TauriWindow.currentMonitor(); if (screen === null) { - showSnackbar({ - text: "获取屏幕信息失败!", - color: "error", - timeout: 3000, - }); + showSnackbar({ text: "获取屏幕信息失败!", color: "error", timeout: 3000 }); return; } const windowCur = await webviewWindow.getCurrentWebviewWindow(); @@ -178,11 +174,7 @@ async function getDeepLink(): Promise { await windowGet.setFocus(); const payload = parseDeepLink(e.payload); if (payload === false) { - showSnackbar({ - text: "无效的 deep link!", - color: "error", - timeout: 3000, - }); + showSnackbar({ text: "无效的 deep link!", color: "error", timeout: 3000 }); await TGLogger.Error(`[App][getDeepLink] 无效的 deep link! ${JSON.stringify(e.payload)}`); return; } @@ -216,11 +208,7 @@ async function handleDeepLink(payload: string): Promise { if (payload.startsWith("router?path=")) { const routerPath = payload.replace("router?path=", ""); if (router.currentRoute.value.path === routerPath) { - showSnackbar({ - text: "已在当前页面!", - color: "warn", - timeout: 3000, - }); + showSnackbar({ text: "已在当前页面!", color: "warn", timeout: 3000 }); return; } await router.push(routerPath); @@ -258,11 +246,7 @@ async function checkUpdate(): Promise { } appStore.buildTime = getBuildTime(); await TGSqlite.update(); - showSnackbar({ - text: "数据库已更新!", - color: "success", - timeout: 3000, - }); + showSnackbar({ text: "数据库已更新!", color: "success", timeout: 3000 }); // todo 6.0发版时取消注释 // window.open("https://app.btmuli.ink/docs/Changelogs.html"); } diff --git a/src/components/wiki/two-material.vue b/src/components/wiki/two-material.vue index 2cc852cd..c4e70c89 100644 --- a/src/components/wiki/two-material.vue +++ b/src/components/wiki/two-material.vue @@ -9,7 +9,7 @@
{{ props.data.type }}
-
{{ parseDesc() }}
+
@@ -25,6 +25,7 @@ diff --git a/src/pages/WIKI/Material.vue b/src/pages/WIKI/Material.vue index 5ad34c84..0a237254 100644 --- a/src/pages/WIKI/Material.vue +++ b/src/pages/WIKI/Material.vue @@ -1,22 +1,57 @@