jd-opensource / jd-opensource/nutui

countdown 倒计时报警告,时间久了会导致直接卡顿

Open
#2,146 0 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
Vue
Stars
6.5k
Forks
835
PR merge metrics
No merged PRs in 30d

Description

### NutUI scenes(nutui 场景)
微信小程序(@nutui/nutui)

### 在小程序开发工具中可复现
![image](https://user-images.githubusercontent.com/22288837/222063569-b6452a3a-fff8-4368-a861-a8b559850337.png)
![image](https://user-images.githubusercontent.com/22288837/222063870-0dd0e012-874a-4190-8e0b-e32d5e887d86.png)

### 微信社区的说法是要清除setTimeout的定时器 [https://developers.weixin.qq.com/community/develop/doc/000c22834b8dc049777da76f75b000?_at=1677652354600](https://developers.weixin.qq.com/community/develop/doc/000c22834b8dc049777da76f75b000?_at=1677652354600)

### NutUI-vue version(nutui-vue 版本)

3.3.2

### Vue version(vue 版本)
3.2.47

### Operating environment(运行环境)
dev:h5

### Citation method(引用方式)
npm

### Node version(node 版本)
16.18.0

### Browser and its version(浏览器及其版本)
Chrome(106.0.5249.119)

### System and its version(系统及其版本)
window10

### Reproduction link(重现链接)
[codesandbox.io/s/tef7sf](https://codesandbox.io/s/tef7sf?file=/src/App.vue)

### Steps to reproduce(重现步骤)
在小程序中会一直出现报警告,还导致手机卡顿

### What is expected?(期望的结果是什么?)
修复bug

### What is actually happening?(实际的结果是什么?)
未修复

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.