perf: simplify watch param

This commit is contained in:
chenjiahan
2020-08-25 15:12:53 +08:00
parent c371301648
commit e686738fd5
5 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ export default createComponent({
});
watch(
computed(() => props.rate),
() => props.rate,
(rate) => {
let rafId;
const startTime = Date.now();