mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: entity
This commit is contained in:
parent
48956acc9e
commit
37a3eebfcc
@ -158,8 +158,9 @@ limitations under the License. -->
|
||||
</template>
|
||||
<Metrics
|
||||
:type="'hierarchyServicesConfig'"
|
||||
:expressions="currentRow.expressions"
|
||||
:expressions="currentRow.expressions || []"
|
||||
:layer="currentRow.layer"
|
||||
:entity="currentRow.entity"
|
||||
@update="updateSettings"
|
||||
/>
|
||||
</el-popover>
|
||||
|
@ -72,6 +72,7 @@ limitations under the License. -->
|
||||
isExpression: { type: Boolean, default: true },
|
||||
layer: { type: String, default: "" },
|
||||
expressions: { type: Array<string>, default: () => [] },
|
||||
entity: { type: String, default: EntityType[0].value },
|
||||
});
|
||||
const { t } = useI18n();
|
||||
const emit = defineEmits(["update"]);
|
||||
@ -120,7 +121,7 @@ limitations under the License. -->
|
||||
const { dashboard } = getDashboard(
|
||||
{
|
||||
layer: props.layer || "",
|
||||
entity: EntityType[0].value,
|
||||
entity: props.entity,
|
||||
},
|
||||
ConfigFieldTypes.ISDEFAULT,
|
||||
);
|
||||
@ -165,7 +166,7 @@ limitations under the License. -->
|
||||
};
|
||||
}
|
||||
watch(
|
||||
() => props.type,
|
||||
() => [props.type, ...props.expressions],
|
||||
() => {
|
||||
currentMetric.value = metricList.value[0].value;
|
||||
const config = getMetricConfig.value || [];
|
||||
|
Loading…
Reference in New Issue
Block a user