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 @@