From f53fcb0a71fd9140554b85ee377f2edb4fa99bf7 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 8 Apr 2026 00:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E7=AE=80=E5=8C=96=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=E6=B4=BB=E5=8A=A8=E7=82=B9=E5=87=BB=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/t-post.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 6d0585de..afcd097b 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -183,7 +183,6 @@ import useBBSStore from "@store/bbs.js"; import useUserStore from "@store/user.js"; import { app, webviewWindow } from "@tauri-apps/api"; import { emit, type Event, listen, type UnlistenFn } from "@tauri-apps/api/event"; -import { openUrl } from "@tauri-apps/plugin-opener"; import { parseLink, parsePost } from "@utils/linkParser.js"; import TGClient from "@utils/TGClient.js"; import TGLogger from "@utils/TGLogger.js"; @@ -476,13 +475,12 @@ async function toAct(): Promise { location.href = `/post_detail/${isPost}`; return; } - const res = await parseLink(link); - if (res === true) return; + const res = await parseLink(link, true); if (res === false) { showSnackbar.error(`未知链接:${link}`, 3000); return; } - await openUrl(res); + await TGClient.open("web_act", link); } function handleUser(user: TGApp.BBS.Post.User): void {