[Fix][UI Next][V1.0.0-Beta] Fix the page input error on the token manage page. (#9879)

This commit is contained in:
Amy0104 2022-05-05 11:44:56 +08:00 committed by GitHub
parent 136a183018
commit 4bddef8238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -149,13 +149,13 @@ export function useTable() {
})
const handleDelete = (row: any) => {
if (variables.tableData.length === 1 && variables.page > 1) {
--variables.page
}
deleteToken(row.id).then(() => {
getTableData({
pageSize: variables.pageSize,
pageNo:
variables.tableData.length === 1 && variables.page > 1
? variables.page - 1
: variables.page,
pageNo: variables.page,
searchVal: variables.searchVal
})
})