mirror of
https://github.com/EasyTier/EasytierGame.git
synced 2025-05-19 10:27:56 +00:00
优化文字提示,启动联机下拉按钮新增本地游戏列表功能
This commit is contained in:
+4
-3
@@ -121,9 +121,10 @@ export async function MenuItemTheme() {
|
||||
text: "主题切换",
|
||||
action: async () => {
|
||||
const mainStore = useMainStore();
|
||||
mainStore.theme = !mainStore.theme;
|
||||
// const appWindow = getCurrentWindow();
|
||||
// appWindow.emitTo("main", "config", { theme: mainStore.theme });
|
||||
mainStore.$patch({
|
||||
theme: !mainStore.theme
|
||||
});
|
||||
// mainStore.$persist();
|
||||
await setTheme(mainStore.theme);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user