初始化项目, 添加TDesign等包

This commit is contained in:
zhengw
2025-11-28 16:49:36 +08:00
commit 3e53beb7bb
980 changed files with 39201 additions and 0 deletions

22
miniprogram/app.ts Normal file
View File

@@ -0,0 +1,22 @@
// app.ts
App<
IAppOption & {
// Storage: IStorage
}
>({
globalData: {},
onLaunch() {
// 展示本地存储能力
// const logs = wx.getStorageSync("logs") || [];
// logs.unshift(Date.now());
// setStorage("logs", logs);
// // 登录
// wx.login({
// success: (res) => {
// console.log(res.code);
// // 发送 res.code 到后台换取 openId, sessionKey, unionId
// },
// });
},
// Storage: Storage, // 将 Storage 挂载到 App 实例上
});