This commit is contained in:
zhongluofeng
2026-07-30 09:09:29 +08:00
parent 74902c4cec
commit f452322aad
32 changed files with 4586 additions and 115 deletions
+15
View File
@@ -0,0 +1,15 @@
import { ref } from 'vue'
/**
* 托盘菜单触发的待处理动作
*
* Rust 后端通过 Tauri 事件通知前端执行模块切换 / 对话框打开等操作。
* 由于目标模块可能尚未挂载(延迟加载),使用 ref 作为共享标志位,
* 模块在 onMounted 中检查并消费。
*/
/** 待打开新建下载对话框(由托盘"新建下载"触发) */
export const pendingNewDownload = ref(false)
/** 待切换到设置模块(由托盘"常规设置"触发) */
export const pendingOpenSettings = ref(false)