This commit is contained in:
2025-10-10 10:28:36 +08:00
parent 204dd4781b
commit 71d5aabb84
10 changed files with 323 additions and 1185 deletions

View File

@@ -25,7 +25,7 @@ const appContext = {
systemService,
// 直接暴露系统服务的方法,简化调用
storage: systemService?.getResourceService(),
events: systemService?.getEventService(),
// 移除 events: systemService?.getEventService(),
lifecycle: systemService?.getLifecycleManager(),
window: {
setTitle: (title: string) => {
@@ -52,11 +52,11 @@ onMounted(async () => {
version: '1.0.0',
permissions: ['storage', 'notification']
})
if (props.title) {
await window.SystemSDK.window.setTitle(props.title)
}
console.log(`内置应用 ${props.appId} 初始化成功`)
}
} catch (error) {