| 12345678910111213141516 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- const messageStore = common_vendor.reactive({
- unreadCount: 0,
- // 初始未读数为 0,由 App.vue onShow 触发刷新
- // 更新未读数的方法
- setUnreadCount(count) {
- this.unreadCount = count;
- },
- // 标记全部已读
- markAllAsRead() {
- this.unreadCount = 0;
- }
- });
- exports.messageStore = messageStore;
- //# sourceMappingURL=../../.sourcemap/mp-weixin/store/message.js.map
|