This commit is contained in:
Fine 2025-05-15 17:01:19 +08:00
parent 0a12c31e72
commit 73e25dcea6

View File

@ -61,7 +61,7 @@ limitations under the License. -->
</nav> </nav>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, computed } from "vue"; import { ref, computed, watch } from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import ConditionTags from "@/views/components/ConditionTags.vue"; import ConditionTags from "@/views/components/ConditionTags.vue";
@ -125,6 +125,16 @@ limitations under the License. -->
pageNum.value = p; pageNum.value = p;
refreshAlarms({ pageNum: p }); refreshAlarms({ pageNum: p });
} }
watch(
() => appStore.coldStageMode,
() => {
durationRow.value = InitializationDurationRow;
setDurationRow(durationRow.value);
duration.value = getDurationTime();
refreshAlarms({ pageNum: 1 });
},
);
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.alarm-tool { .alarm-tool {