fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user