fix entity

This commit is contained in:
Qiuxia Fan 2022-04-01 21:08:21 +08:00
parent b817ed5825
commit 39caab5238

View File

@ -166,9 +166,9 @@ const states = reactive<{
currentDestPod: "", currentDestPod: "",
}); });
const key = computed(() => { const key = computed(() => {
const type = EntityType.filter( const type = EntityType.find(
(d: Option) => d.value === dashboardStore.entity (d: Option) => d.value === dashboardStore.entity
)[0]; );
return (type && type.key) || 0; return (type && type.key) || 0;
}); });