mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 21:15:25 +00:00
fix metric config
This commit is contained in:
parent
e8b8cf5fb4
commit
431ade7f43
@ -71,7 +71,7 @@ limitations under the License. -->
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import type { PropType } from "vue";
|
import type { PropType } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { SortOrder, CalculationOpts } from "../../../data";
|
import { SortOrder, CalculationOpts } from "../../../data";
|
||||||
@ -104,6 +104,12 @@ function changeConfigs(index: number, param: { [key: string]: string }) {
|
|||||||
});
|
});
|
||||||
emit("update");
|
emit("update");
|
||||||
}
|
}
|
||||||
|
watch(
|
||||||
|
() => props.currentMetricConfig,
|
||||||
|
() => {
|
||||||
|
currentMetric.value = props.currentMetricConfig;
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.config-panel {
|
.config-panel {
|
||||||
|
Loading…
Reference in New Issue
Block a user