fix: 待办工作接口改用jsonflow/run-job/todo/page
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
<script setup lang="ts" name="home">
|
||||
import { ref, onMounted, onUnmounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { fetchList as fetchPendingWorkList } from '/@/api/stuwork/pendingwork'
|
||||
import { fetchTodoPage } from '/@/api/jsonflow/do-job'
|
||||
import { fetchList as fetchNoticeList } from '/@/api/jsonflow/ws-notice'
|
||||
import { fetchUserMessageList, readUserMessage } from '/@/api/admin/message'
|
||||
|
||||
@@ -209,7 +209,7 @@ const getTodoType = (priority?: number) => {
|
||||
const loadTodoList = async () => {
|
||||
try {
|
||||
todoLoading.value = true
|
||||
const res = await fetchPendingWorkList({ size: 10 })
|
||||
const res = await fetchTodoPage({ current: 1, size: 10 })
|
||||
if (res.code === 0 && res.data) {
|
||||
todoList.value = res.data.rows || res.data || []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user