Kaynağa Gözat

优化右下角通知提示数据条数大于0

Rockery 3 yıl önce
ebeveyn
işleme
1a56880b51

+ 2 - 2
src/components/BottomRightNotification/index.vue

@@ -3,7 +3,7 @@
  * @Author: Rockery
  * @Date: 2021-12-14 11:50:13
  * @LastEditors: Rockery
- * @LastEditTime: 2022-01-20 09:25:40
+ * @LastEditTime: 2022-01-21 11:47:26
  * @FilePath: \party_construct_web\src\components\BottomRightNotification\index.vue
  * @Copyright: Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
 -->
@@ -44,7 +44,7 @@ export default {
     getWaitHandleListData() {
       getWaitHandleList().then(
         resp => {
-          if (resp.code === 200) {
+          if (resp.code === 200 && resp.data > 0) {
             this.openMessageTips(
               {
                 messageId: `ROCBRNOTIFY-${new Date().getTime()}`,