feat: 简化toast为单个intance

This commit is contained in:
jiangruowei
2017-03-30 17:23:38 +08:00
parent 50d87fa634
commit 9e0a6bb984
3 changed files with 11 additions and 13 deletions

View File

@@ -39,6 +39,11 @@ export default {
message: leftSec.toString()
});
window.setInterval(() => {
if (leftSec <= 0) {
window.clearInterval();
toast.clear();
return;
}
if (leftSec <= 1) {
window.clearInterval();
toast.message = '跳转中...'