修复一处bug
This commit is contained in:
parent
56e7b66308
commit
33477e826e
|
@ -67,7 +67,7 @@ export default {
|
|||
},
|
||||
onLoad() {},
|
||||
async onShow() {
|
||||
if (this.messageTabIndex != this.tabIndex) {
|
||||
if (this.messageTabIndex != this.tabIndex || (this.messageTabIndex == 0 && this.tabIndex == 0)) {
|
||||
this.tabList = [];
|
||||
await this.loadCate();
|
||||
this.switchTab(this.messageTabIndex);
|
||||
|
@ -124,6 +124,7 @@ export default {
|
|||
*/
|
||||
loadList() {
|
||||
let currentTab = this.tabList[this.tabIndex];
|
||||
console.log(currentTab);
|
||||
this.$models.system.notifyList(currentTab.id, currentTab.page).then((list) => {
|
||||
if (list.length > 0) {
|
||||
list.forEach((item) => {
|
||||
|
|
Loading…
Reference in New Issue