import { IAppAPIParam } from "./core/Api"; import { Logger } from "./core/Logger"; import { LevelLogLabel, LifeCycleLogLabel } from "./core/PresetLogLabel"; App({ /** * API 模块需要的全局数据 * 参见 "/core/Api" */ api: { nextId: 1, pool: new Set() }, /** * 存储缓存键值 */ // storageCache: new Set(), /** * 小程序加载时 */ onLaunch() { Logger.log("小程序启动...", LevelLogLabel.InfoLabel, LifeCycleLogLabel.OnLaunchLabel); } })