chore: update omix ts demo

This commit is contained in:
dntzhang 2019-10-04 10:46:59 +08:00
parent ccef23226d
commit ca35aa4d88
1 changed files with 1 additions and 2 deletions

View File

@ -6,10 +6,9 @@ var store_1 = require("../../store");
create_1.default(store_1.default, {
use: ['logs'],
onLoad: function () {
console.log(1);
this.store.data.logs = (wx.getStorageSync('logs') || []).map(function (log) {
return util_1.formatTime(new Date(log));
});
}
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9ncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxvZ3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx5Q0FBNkM7QUFDN0MsNkNBQXVDO0FBQ3ZDLHFDQUErQjtBQUUvQixnQkFBTSxDQUFDLGVBQUssRUFBRTtJQUNaLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQztJQUNiLE1BQU0sRUFBRTtRQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDZCxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxFQUFFLENBQUMsY0FBYyxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFDLEdBQVc7WUFDdkUsT0FBTyxpQkFBVSxDQUFDLElBQUksSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUE7UUFDbEMsQ0FBQyxDQUFDLENBQUE7SUFDSixDQUFDO0NBQ0YsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy9sb2dzLmpzXG5pbXBvcnQgeyBmb3JtYXRUaW1lIH0gZnJvbSAnLi4vLi4vdXRpbHMvdXRpbCdcbmltcG9ydCBjcmVhdGUgZnJvbSAnLi4vLi4vdXRpbHMvY3JlYXRlJ1xuaW1wb3J0IHN0b3JlIGZy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