待弹框的数据为非响应式的

This commit is contained in:
joylink_zhaoerwei 2023-11-01 15:07:40 +08:00
parent 49bfd7e346
commit 036fddf8fe

View File

@ -7,7 +7,7 @@
</template>
<script setup lang="ts">
import { watch, onUnmounted, ref, markRaw } from 'vue';
import { watch, onUnmounted, ref, toRaw } from 'vue';
import { AlarmInfo, useLineNetStore } from 'src/stores/line-net-store';
import { DialogChainObject, useQuasar } from 'quasar';
import alarmInfoDialog from 'src/components/alarm/alarmInfoDialog.vue';
@ -41,7 +41,7 @@ watch(
alarm(alarmType, val[0].id);
playAlarmMusic(alarmType);
} else {
waitShowDialog.push(markRaw(lineNetStore.alarmInfo[0]));
waitShowDialog.push(toRaw(lineNetStore.alarmInfo[0]));
}
}
}