29 lines
583 B
TypeScript
29 lines
583 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.TraceLabel, LifeCycleLogLabel.OnLaunchLabel);
|
|
}
|
|
}) |