zhugf
2023-03-23 d5eef829f2daf8bf021c9524e2c93312091ba58f
App.vue
@@ -44,18 +44,18 @@
      },
      mounted() {
         var i = 0;
         setInterval(function() {
            i++
            if (i % 2 == 0) {
               uni.showTabBarRedDot({
                  index: 1
               })
            } else {
               uni.hideTabBarRedDot({
                  index: 1
               })
            }
         }, 3000)
         // setInterval(function() {
         //    i++
         //    if (i % 2 == 0) {
         //       uni.showTabBarRedDot({
         //          index: 1
         //       })
         //    } else {
         //       uni.hideTabBarRedDot({
         //          index: 1
         //       })
         //    }
         // }, 3000)