|
@@ -37,17 +37,6 @@
|
|
|
:visible="true"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-else-if="isBD">
|
|
|
- <ModuleBD
|
|
|
- v-for="cfg in configs"
|
|
|
- :key="cfg.deviceType"
|
|
|
- :show-style="cfg.showStyle"
|
|
|
- :module-data="cfg.moduleData"
|
|
|
- :module-name="cfg.moduleName"
|
|
|
- :device-type="cfg.deviceType"
|
|
|
- :visible="true"
|
|
|
- />
|
|
|
- </template>
|
|
|
<template v-else>
|
|
|
<!-- 下面是正常展示的各新版模块 -->
|
|
|
<ModuleEnhanced
|
|
@@ -78,8 +67,7 @@
|
|
|
import ModuleEnhanced from './components/ModuleEnhanced.vue';
|
|
|
import ModuleOriginal from './components/ModuleOriginal.vue';
|
|
|
import ModuleCommon from './components/ModuleCommon.vue';
|
|
|
- import ModuleBD from './components/ModuleBD.vue';
|
|
|
- import { testConfigBDDust } from './configurable.data';
|
|
|
+ import { testConfigBDNew } from './configurable.data';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
|
|
interface EnhancedConfig extends Config {
|
|
@@ -95,7 +83,7 @@
|
|
|
const hiddenList = computed(() => {
|
|
|
return enhancedConfigs.value.filter((e) => e.visible === false);
|
|
|
});
|
|
|
- const { configs, isOriginal, isCommon, isBD, fetchConfigs } = useInitConfigs();
|
|
|
+ const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
|
|
|
|
|
|
onMounted(() => {
|
|
|
const query = useRoute().query;
|
|
@@ -107,8 +95,8 @@
|
|
|
}
|
|
|
// configs.value = testConfigB;
|
|
|
fetchConfigs('configurable_home').then(() => {
|
|
|
- configs.value = testConfigBDDust;
|
|
|
- // configs.value.push(...testConfigBDDust);
|
|
|
+ configs.value = testConfigBDNew;
|
|
|
+ // configs.value.push(...testConfigBDNew);
|
|
|
enhancedConfigs.value = configs.value.map((c) => {
|
|
|
return {
|
|
|
visible: true,
|