Browse Source

【移动端】获取验证码后,退出页面时还原状态

samhoo 4 years ago
parent
commit
7a921b2b3f

+ 2 - 0
uas-office-web/uas-mobile/src/pages/private/salaryQuery/SalaryQuery.jsx

@@ -93,6 +93,8 @@ class SalaryQuery extends Component {
     }
 
     componentWillUnmount() {
+        clearInterval(this.timer);
+        maxTime = 60;
         Toast.hide();
         this.promptAlert1 && this.promptAlert1.close();
         this.promptAlert2 && this.promptAlert2.close();