mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: fix bug
This commit is contained in:
parent
e1a12c8684
commit
d33dd458cf
|
|
@ -190,6 +190,30 @@ const next_disable = computed(() => {
|
|||
const index = tableIndexMap.value[currentId.value] + 1
|
||||
return index >= data.value.length && index >= paginationConfig.total - 1
|
||||
})
|
||||
|
||||
const setRowClass = ({ row }: any) => {
|
||||
return currentId.value === row?.id ? 'highlight' : ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 下一页
|
||||
*/
|
||||
const nextRecord = () => {
|
||||
const index = tableIndexMap.value[currentId.value] + 1
|
||||
if (index >= data.value.length) {
|
||||
if (index >= paginationConfig.total - 1) {
|
||||
return
|
||||
}
|
||||
paginationConfig.current_page = paginationConfig.current_page + 1
|
||||
getList().then(() => {
|
||||
currentId.value = data.value[index].id
|
||||
currentContent.value = data.value[index]
|
||||
})
|
||||
} else {
|
||||
currentId.value = data.value[index].id
|
||||
currentContent.value = data.value[index]
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 上一页
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue