移除游戏页面的图片刷新逻辑,简化组件代码结构
This commit is contained in:
@@ -113,16 +113,6 @@ export default {
|
|||||||
const diff = total - completed
|
const diff = total - completed
|
||||||
return diff > 0 ? diff : 0
|
return diff > 0 ? diff : 0
|
||||||
}
|
}
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.setupImageRefresh()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
setupImageRefresh() {
|
|
||||||
setInterval(() => {
|
|
||||||
this.timestamp = Date.now()
|
|
||||||
}, 5000)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user