This commit is contained in:
吴红兵
2026-03-04 23:20:40 +08:00
parent 7f61c9bdce
commit 48b31285c8
3 changed files with 108 additions and 32 deletions

View File

@@ -128,7 +128,7 @@
</template>
<script setup lang="ts" name="home">
import { ref, onMounted, onUnmounted } from 'vue'
import { ref, onMounted, onActivated, onUnmounted } from 'vue'
import { useRouter } from 'vue-router'
import { fetchTodoPage } from '/@/api/jsonflow/do-job'
import { fetchList as fetchNoticeList } from '/@/api/jsonflow/ws-notice'
@@ -278,6 +278,11 @@ onMounted(() => {
loadMessageList()
})
// 页面激活时刷新待办列表(处理从待办返回的情况)
onActivated(() => {
loadTodoList()
})
onUnmounted(() => {
if (timeTimer) {
clearInterval(timeTimer)