未验证 提交 88c486b5 编写于 作者: L Luoyiling1010 提交者: Gitee

【OpenHarmony开源贡献者计划2022】代码错误,star应该为start

Signed-off-by: Luoyiling1010 <345725087@qq.com>
上级 e5b7cbc6
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
isPaused: true, isPaused: true,
intervalId : null, intervalId : null,
}, },
star(){ start(){
this.intervalId = setInterval(()=>{ this.intervalId = setInterval(()=>{
if(this.percent <100){ if(this.percent <100){
this.percent += 1; this.percent += 1;
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
prompt.showToast({ prompt.showToast({
message: "Started Downloading" message: "Started Downloading"
}) })
this.star(); this.start();
this.isPaused = false; this.isPaused = false;
}else{ }else{
prompt.showToast({ prompt.showToast({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册