Private
Public Access
1
0

新增:应用配置管理模块,优化文件系统功能

- 新增 ConfigAPI 和 ConfigService 实现配置管理
- 新增 SettingsPanel 和 UpdateNotification 组件
- 文件系统模块化重构,提升代码质量
- 提取公共函数,优化代码结构
- 版本号更新至 0.2.0
This commit is contained in:
2026-01-28 22:48:10 +08:00
parent 7e79a53dae
commit b849e6cc46
31 changed files with 3024 additions and 917 deletions

View File

@@ -217,3 +217,28 @@ export async function getFileServerURL(): Promise<string> {
}
return await window.go.main.App.GetFileServerURL()
}
/**
* 解析快捷方式文件,返回目标路径信息
*/
export async function resolveShortcut(lnkPath: string): Promise<{
success: boolean
message?: string
targetPath?: string
targetExists?: boolean
targetAccessible?: boolean
targetInfo?: any
}> {
console.log('[API] resolveShortcut 调用:', lnkPath)
if (!window.go?.main?.App?.ResolveShortcut) {
throw new Error('ResolveShortcut API 不可用')
}
try {
const result = await window.go.main.App.ResolveShortcut(lnkPath)
console.log('[API] resolveShortcut 结果:', result)
return result
} catch (error) {
console.error('[API] resolveShortcut 错误:', error)
throw error
}
}