Tauri 前端特定于窗口的事件
2024-01-26 10:00 更新
特定于窗口的事件在模块上公开。window
import { appWindow, WebviewWindow } from '@tauri-apps/api/window'
// emit an event that is only visible to the current window
appWindow.emit('event', { message: 'Tauri is awesome!' })
// create a new webview window and emit an event only to that window
const webview = new WebviewWindow('window')
webview.emit('event')
以上内容是否对您有帮助:
更多建议: