修复一处bug

This commit is contained in:
TOP糯米 2023-03-26 19:20:01 +08:00
parent 56e7b66308
commit 33477e826e
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export default {
}, },
onLoad() {}, onLoad() {},
async onShow() { async onShow() {
if (this.messageTabIndex != this.tabIndex) { if (this.messageTabIndex != this.tabIndex || (this.messageTabIndex == 0 && this.tabIndex == 0)) {
this.tabList = []; this.tabList = [];
await this.loadCate(); await this.loadCate();
this.switchTab(this.messageTabIndex); this.switchTab(this.messageTabIndex);
@ -124,6 +124,7 @@ export default {
*/ */
loadList() { loadList() {
let currentTab = this.tabList[this.tabIndex]; let currentTab = this.tabList[this.tabIndex];
console.log(currentTab);
this.$models.system.notifyList(currentTab.id, currentTab.page).then((list) => { this.$models.system.notifyList(currentTab.id, currentTab.page).then((list) => {
if (list.length > 0) { if (list.length > 0) {
list.forEach((item) => { list.forEach((item) => {