fix : 细节优化
This commit is contained in:
@@ -56,6 +56,7 @@ import {useProcessStore} from '@/stores/processStore.js'
|
||||
import Paging from "@/components/pagination/index.vue";
|
||||
import {useCacheStore} from '@/stores/cache.js'
|
||||
import PointTag from "@/components/PointTag.vue";
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
const processStore = useProcessStore()
|
||||
const dictStore = useCacheStore()
|
||||
@@ -100,9 +101,15 @@ const getList = async () => {
|
||||
}
|
||||
loading.value = true
|
||||
getTaskList(params).then(res => {
|
||||
list.value = res.data.rows
|
||||
total.value = res.data.total
|
||||
if (res.code === 1000) {
|
||||
list.value = res.data.rows
|
||||
total.value = res.data.total
|
||||
} else {
|
||||
ElMessage.error(res.msg)
|
||||
}
|
||||
loading.value = false
|
||||
}).catch(err => {
|
||||
loading.value = false;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user