修复一处bug
This commit is contained in:
parent
56e7b66308
commit
33477e826e
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue