|
@@ -4,8 +4,8 @@
|
|
|
<template v-if="!route.query.deviceType">
|
|
|
<div class="main-container">
|
|
|
<ModuleOriginal
|
|
|
- v-for="cfg in configs"
|
|
|
- :key="cfg.deviceType"
|
|
|
+ v-for="(cfg, index) in configs"
|
|
|
+ :key="cfg.deviceType + index"
|
|
|
:show-style="cfg.showStyle"
|
|
|
:module-data="cfg.moduleData"
|
|
|
:module-name="cfg.moduleName"
|
|
@@ -35,14 +35,14 @@
|
|
|
import { BDFireMock } from './mock';
|
|
|
const { title = '智能通风管控系统' } = useGlobSetting();
|
|
|
const { configs, fetchConfigs } = useInitConfigs();
|
|
|
- const { data, updateData, updateEnhancedConfigs } = useInitPage(title);
|
|
|
+ const { data, updateData } = useInitPage(title);
|
|
|
const route = useRoute();
|
|
|
let interval: number | undefined;
|
|
|
|
|
|
onMounted(() => {
|
|
|
fetchConfigs('fire-green').then(() => {
|
|
|
configs.value = testConfigFireGreen;
|
|
|
- updateEnhancedConfigs(configs.value);
|
|
|
+ // updateEnhancedConfigs(configs.value);
|
|
|
|
|
|
Promise.resolve(BDFireMock).then(updateData);
|
|
|
// getHomeData({}).then(updateData);
|