This commit is contained in:
Qiuxia Fan 2022-03-24 11:11:43 +08:00
parent 51bb2ad9c6
commit e64c75f257

View File

@ -35,7 +35,7 @@ const dashboardStore = useDashboardStore();
const routesMap: { [key: string]: string } = {
GeneralServices: "GENERAL",
Database: "VIRTUAL_DATABASE",
MESH: "MESH",
MeshServices: "MESH",
ControlPanel: "MESH_CP",
DataPanel: "MESH_DP",
Linux: "OS_LINUX",
@ -52,6 +52,7 @@ getDashboard();
async function getDashboard() {
layer.value = routesMap[String(route.name)];
console.log(layer.value);
dashboardStore.setLayer(layer.value);
dashboardStore.setEntity(EntityType[1].value);
dashboardStore.setMode(false);