✨ Added system tray service
This commit is contained in:
@@ -187,6 +187,12 @@ const alwaysOnTop = computed({
|
||||
}
|
||||
});
|
||||
|
||||
// 计算属性 - 启用系统托盘
|
||||
const enableSystemTray = computed({
|
||||
get: () => configStore.config.general.enableSystemTray,
|
||||
set: (value: boolean) => configStore.setEnableSystemTray(value)
|
||||
});
|
||||
|
||||
// 修饰键配置 - 只读计算属性
|
||||
const modifierKeys = computed(() => ({
|
||||
ctrl: configStore.config.general.globalHotkey.ctrl,
|
||||
@@ -338,6 +344,9 @@ onUnmounted(() => {
|
||||
<SettingItem :title="t('settings.alwaysOnTop')">
|
||||
<ToggleSwitch v-model="alwaysOnTop"/>
|
||||
</SettingItem>
|
||||
<SettingItem :title="t('settings.enableSystemTray')">
|
||||
<ToggleSwitch v-model="enableSystemTray"/>
|
||||
</SettingItem>
|
||||
</SettingSection>
|
||||
|
||||
<SettingSection :title="t('settings.dataStorage')">
|
||||
|
Reference in New Issue
Block a user