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
@@ -59,7 +59,7 @@ export default createComponent({
});
watch(
computed(() => props.src),
() => props.src,
() => {
error.value = false;
loading.value = true;