|
@@ -27,7 +27,7 @@
|
|
|
class="scene"
|
|
|
:class="{ disabled: item.raw.status !== SceneStatus.SUCCESS }"
|
|
|
@click="updateCurrent(item.raw)"
|
|
|
- v-else
|
|
|
+ v-else-if="item.raw.type !== SceneType.SWMX"
|
|
|
>
|
|
|
<div>
|
|
|
<p>{{ item.raw.name }}</p>
|
|
@@ -91,13 +91,15 @@ const sync = async (scene: Scene) => {
|
|
|
|
|
|
const list = computed(() => {
|
|
|
const sceneList = true
|
|
|
- ? scenes.value.map((scene) => ({
|
|
|
- raw: scene,
|
|
|
- select:
|
|
|
- props.current !== fuseModel &&
|
|
|
- props.current.num === scene.num &&
|
|
|
- props.current.type === scene.type,
|
|
|
- }))
|
|
|
+ ? scenes.value
|
|
|
+ .filter((scene) => scene.type !== SceneType.SWMX)
|
|
|
+ .map((scene) => ({
|
|
|
+ raw: scene,
|
|
|
+ select:
|
|
|
+ props.current !== fuseModel &&
|
|
|
+ props.current.num === scene.num &&
|
|
|
+ props.current.type === scene.type,
|
|
|
+ }))
|
|
|
: [];
|
|
|
if (fuseModels.value.length) {
|
|
|
return [{ raw: fuseModel }, ...sceneList];
|