fix: update

This commit is contained in:
Fine 2024-01-09 17:21:54 +08:00
parent 4ed7526f46
commit 94ff51e928
2 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,8 @@ limitations under the License. -->
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref } from "vue"; import { computed, ref } from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import type { Node, HierarchyServicesConfig } from "@/types/dashboard"; import type { HierarchyServicesConfig } from "@/types/dashboard";
import type { Node } from "@/types/topology";
import type { Option } from "@/types/app"; import type { Option } from "@/types/app";
import { useDashboardStore } from "@/store/modules/dashboard"; import { useDashboardStore } from "@/store/modules/dashboard";
import { useTopologyStore } from "@/store/modules/topology"; import { useTopologyStore } from "@/store/modules/topology";
@ -71,7 +72,7 @@ limitations under the License. -->
const { hierarchyServicesConfig } = dashboardStore.selectedGrid; const { hierarchyServicesConfig } = dashboardStore.selectedGrid;
const layer = opt[0].value; const layer = opt[0].value;
currentConfig.value = hierarchyServicesConfig.value.find((d) => d.layer === layer.value) || {}; currentConfig.value = hierarchyServicesConfig.value.find((d: HierarchyServicesConfig) => d.layer === layer) || {};
} }
function changeNodeExpressions(param: string[]) { function changeNodeExpressions(param: string[]) {

View File

@ -147,7 +147,7 @@ limitations under the License. -->
import { EntityType, DepthList, MetricModes, CallTypes } from "@/views/dashboard/data"; import { EntityType, DepthList, MetricModes, CallTypes } from "@/views/dashboard/data";
import router from "@/router"; import router from "@/router";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import Settings from "..HierarchySettings.vue"; import Settings from "../config/HierarchySettings.vue";
import HierarchyMap from "./HierarchyMap.vue"; import HierarchyMap from "./HierarchyMap.vue";
import type { Option } from "@/types/app"; import type { Option } from "@/types/app";
import type { Service } from "@/types/selector"; import type { Service } from "@/types/selector";