mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
refactor: optimize data types for widgets and dashboards (#490)
This commit is contained in:
@@ -28,7 +28,7 @@ limitations under the License. -->
|
||||
:destroy-on-close="true"
|
||||
@closed="dashboardStore.setConfigPanel(false)"
|
||||
>
|
||||
<component :is="dashboardStore.selectedGrid.type" />
|
||||
<component :is="dashboardStore.selectedGrid?.type" />
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
v-model="dashboardStore.showLinkConfig"
|
||||
@@ -77,9 +77,9 @@ limitations under the License. -->
|
||||
dashboardStore.setLayout(setWidgetsID(layout.children || []));
|
||||
if (p.entity) {
|
||||
dashboardStore.setCurrentDashboard({
|
||||
layer: p.layerId,
|
||||
entity: p.entity,
|
||||
name: p.name,
|
||||
layer: p.layerId as string,
|
||||
entity: p.entity as string,
|
||||
name: p.name as string,
|
||||
id: c.id,
|
||||
isRoot: layout.isRoot,
|
||||
});
|
||||
@@ -112,7 +112,7 @@ limitations under the License. -->
|
||||
}
|
||||
|
||||
onUnmounted(() => {
|
||||
dashboardStore.setCurrentDashboard({});
|
||||
dashboardStore.setCurrentDashboard(null);
|
||||
});
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user