Pārlūkot izejas kodu

消息数提示

codeMan 1 gadu atpakaļ
vecāks
revīzija
bcefba14e0

+ 1 - 1
cloud/feedback/insert.vue

@@ -102,8 +102,8 @@ export default {
                             if (this.cutoff(s.msg)) return;
                         })
                     };
-                    if (this.$Http.updateList) return this.$Http.updateList(res.data);
                     uni.navigateBack()
+                    if (this.$Http.updateList) return this.$Http.updateList(res.data);
                 })
                 console.log("页面", data)
             })

+ 1 - 0
pages/index/cloud/workbench.vue

@@ -99,6 +99,7 @@ export default {
             this.getUserInfo().then(() => {
                 callBack()
             })
+            callBack()
             this.updatePage = false;
         },
         async getUserInfo() {

+ 5 - 0
pages/index/index.vue

@@ -82,6 +82,11 @@ export default {
 				this.$refs.pages.onClick(itemId, page, false, params)
 			}.bind(this)
 			// #ifdef MP-WEIXIN
+			if (this.page == '工作台') {
+				this.$refs.工作台.getUserInfo()
+			} else if (this.page == '我的') {
+				this.$refs.我的.getUserInfo()
+			}
 			this.updatePageData(this.swiperItemID, this.page)
 			// #endif
 		}