♻️ 方法提取

This commit is contained in:
BTMuli
2025-12-22 16:15:23 +08:00
parent 06ff32d47d
commit a2ff92d00a
6 changed files with 50 additions and 46 deletions

View File

@@ -65,6 +65,8 @@ const useAppStore = defineStore(
const cancelLike = ref<boolean>(true);
/* 关闭窗口时最小化到托盘 */
const closeToTray = ref<boolean>(false);
/** 是否是管理员模式 */
const isInAdmin = ref<boolean>(false);
/**
* 初始化应用状态
@@ -147,6 +149,7 @@ const useAppStore = defineStore(
init,
changeTheme,
getImageUrl,
isInAdmin,
};
},
{