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 -5
View File
@@ -116,11 +116,7 @@ export default createComponent({
}
};
watch(
computed(() => props.time),
reset,
{ immediate: true }
);
watch(() => props.time, reset, { immediate: true });
onActivated(() => {
if (keepAlived) {