cz 1 vuosi sitten
vanhempi
commit
b5ca662af0
1 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 13 0
      src/views/main.vue

+ 13 - 0
src/views/main.vue

@@ -150,6 +150,19 @@ const socketInit = () => {
     }
     if (res.type == 2) {
       msgCount.value = res.count * 1;
+      proxy
+        .post("/pushInfo/page", {
+          pageNum: 1,
+          pageSize: 9999,
+          whetherFlow: 0,
+          pushRead: 0,
+        })
+        .then((res) => {
+          if (res.data.rows && res.data.rows.length > 0) {
+            let list = res.data.rows.filter((x) => x.businessType == 10);
+            msgCountOne.value = list.length;
+          }
+        });
     }
     if (res.type == 3) {
       // ElNotification({