【issues-615】系统监控中的REDIS监控页面打开,再关闭后,没有关闭计时器

pull/663/head
zhangdaiscott 2023-07-19 15:50:57 +08:00
parent 6203e202d8
commit 77e3f47b3a
1 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,7 @@
</div> </div>
</template> </template>
<script lang="ts" name="monitor-redis" setup> <script lang="ts" name="monitor-redis" setup>
import { onMounted, ref, reactive, Ref } from 'vue'; import { onMounted, ref, reactive, Ref, onUnmounted } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { getInfo, getRedisInfo } from './redis.api'; import { getInfo, getRedisInfo } from './redis.api';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@ -186,4 +186,9 @@
loadData(); loadData();
}, 1000); }, 1000);
}); });
// update-begin--author:liaozhiyang---date:220230719---forissues-615REDIS
onUnmounted(() => {
closeTimer();
});
// update-end--author:liaozhiyang---date:220230719---forissues-615REDIS
</script> </script>