fix: update metrics

This commit is contained in:
Qiuxia Fan
2022-01-25 14:43:24 +08:00
parent 9389eeb184
commit 137f093e05
9 changed files with 50 additions and 34 deletions

View File

@@ -41,8 +41,11 @@ onMounted(() => {
watch(
() => props.option,
(opt) => {
setOptions(opt);
(newVal, oldVal) => {
if (JSON.stringify(newVal) === JSON.stringify(oldVal)) {
return;
}
setOptions(newVal);
}
);