refactor: create a component for metric config

This commit is contained in:
Qiuxia Fan
2022-01-19 18:12:16 +08:00
parent 3d6fe887a5
commit 4baa00001a
10 changed files with 201 additions and 226 deletions

View File

@@ -121,7 +121,7 @@ export default defineComponent({
}
}
watch(
() => [props.data.queryMetricType, props.data.metrics],
() => [props.data.metricTypes, props.data.metrics],
(data, old) => {
if (data[0] === old[0] && data[1] === old[1]) {
return;