mini-dlpu-v3/miniprogram/app.ts
2021-12-30 16:14:21 +08:00

29 lines
576 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: []
},
/**
* 存储缓存键值
*/
// storageCache: new Set<string>(),
/**
* 小程序加载时
*/
onLaunch() {
Logger.log("小程序启动...",
LevelLogLabel.TraceLabel, LifeCycleLogLabel.OnLaunchLabel);
}
})