shizhongqi 11 месяцев назад
Родитель
Сommit
a46baf634f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      mallApp/src/pages/chat/chatPage.vue
  2. 1 1
      mallApp/src/pages/home/recent.vue

+ 1 - 1
mallApp/src/pages/chat/chatPage.vue

@@ -1105,7 +1105,7 @@ export default {
         // 如果两者都不是,返回空对象
         // 如果两者都不是,返回空对象
         return {};
         return {};
       } catch (error) {
       } catch (error) {
-        // console.error("解析商品消息失败:", error, messageStr);
+        console.error("解析商品消息失败:", error, messageStr);
         // 在解析失败时返回一个包含默认值的对象,以避免模板渲染错误
         // 在解析失败时返回一个包含默认值的对象,以避免模板渲染错误
         return {
         return {
           goodsImg: "",
           goodsImg: "",

+ 1 - 1
mallApp/src/pages/home/recent.vue

@@ -250,6 +250,7 @@ export default {
   onShow() {
   onShow() {
     if (!this.$util.isEmpty(this.loginInfo)) {
     if (!this.$util.isEmpty(this.loginInfo)) {
       this.loginStyle = 1;
       this.loginStyle = 1;
+      this.getUnReadMsgCount()
     } else {
     } else {
       this.loginStyle = 0;
       this.loginStyle = 0;
     }
     }
@@ -257,7 +258,6 @@ export default {
       this.init();
       this.init();
       this.pageAction.refresh == 0;
       this.pageAction.refresh == 0;
     }
     }
-    this.getUnReadMsgCount()
   },
   },
   onPullDownRefresh() {
   onPullDownRefresh() {
     this.resetList();
     this.resetList();