|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { useInfiniteScroll } from "@vueuse/core";
|
|
|
|
|
import { defineProps, onMounted, onUnmounted, reactive, ref, watch } from "vue";
|
|
|
|
|
import { defineProps, nextTick, onMounted, onUnmounted, reactive, ref, watch } from "vue";
|
|
|
|
|
import ListItem from "./ListItem.vue";
|
|
|
|
|
import emitter from "@/utils/mitt";
|
|
|
|
|
import { useTaskStore } from "@/store/modules/task";
|
|
|
|
@ -77,8 +77,12 @@ async function fetchList() {
|
|
|
|
|
watch(
|
|
|
|
|
() => taskStore.activeId,
|
|
|
|
|
(newVal) => {
|
|
|
|
|
activeId.value = newVal;
|
|
|
|
|
taskIndex.value = taskStore.getApprovalList.find(i => i.id === newVal)?.taskIndex
|
|
|
|
|
activeId.value = newVal
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
const taskPackage = taskStore.getApprovalList[taskStore.getCurrentIndex]||{}
|
|
|
|
|
taskIndex.value = taskPackage.taskIndex
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|