This commit is contained in:
xuncha
2026-02-16 17:26:06 +08:00
parent ea0dad132c
commit 1930b91a5b
5 changed files with 84 additions and 15 deletions

View File

@@ -12,6 +12,7 @@ export const CONFIG_KEYS = {
LAST_SESSION: 'lastSession',
WINDOW_BOUNDS: 'windowBounds',
CACHE_PATH: 'cachePath',
WEIXIN_DLL_PATH: 'weixinDllPath',
EXPORT_PATH: 'exportPath',
AGREEMENT_ACCEPTED: 'agreementAccepted',
LOG_ENABLED: 'logEnabled',
@@ -162,6 +163,17 @@ export async function setCachePath(path: string): Promise<void> {
}
// 获取 Weixin.dll 路径
export async function getWeixinDllPath(): Promise<string | null> {
const value = await config.get(CONFIG_KEYS.WEIXIN_DLL_PATH)
return value as string | null
}
// 设置 Weixin.dll 路径
export async function setWeixinDllPath(path: string): Promise<void> {
await config.set(CONFIG_KEYS.WEIXIN_DLL_PATH, path)
}
// 获取导出路径
export async function getExportPath(): Promise<string | null> {
const value = await config.get(CONFIG_KEYS.EXPORT_PATH)