mini-dlpu-v3/miniprogram/app.ts
2021-12-31 11:20:18 +08:00

29 lines
582 B
TypeScript

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