发送系统通知时携带folder名
This commit is contained in:
9
src/lib/notification.ts
Normal file
9
src/lib/notification.ts
Normal 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 })
|
||||
}
|
||||
Reference in New Issue
Block a user