This commit is contained in:
quantulr
2023-08-17 15:11:46 +08:00
commit 3c6ab550cf
28 changed files with 36012 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// logs.ts
// const util = require('../../utils/util.js')
import { formatTime } from '../../utils/util'
Page({
data: {
logs: [],
},
onLoad() {
this.setData({
logs: (wx.getStorageSync('logs') || []).map((log: string) => {
return {
date: formatTime(new Date(log)),
timeStamp: log
}
}),
})
},
})