发送系统通知时携带folder名

This commit is contained in:
xintaofei
2026-03-21 19:14:38 +08:00
parent a9e0a742ac
commit d0655066b6
9 changed files with 63 additions and 13 deletions

9
src/lib/notification.ts Normal file
View File

@@ -0,0 +1,9 @@
import { invoke } from "@tauri-apps/api/core"
export async function notifyTurnComplete(
title: string,
body: string,
): Promise<void> {
if (!document.hidden) return
await invoke("send_notification", { title, body })
}