This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 4bddef8238 [Fix][UI Next][V1.0.0-Beta] Fix the page input error on the
token manage page. (#9879)
4bddef8238 is described below
commit 4bddef8238063cade7b0daca6925832da0113660
Author: Amy0104 <[email protected]>
AuthorDate: Thu May 5 11:44:56 2022 +0800
[Fix][UI Next][V1.0.0-Beta] Fix the page input error on the token manage
page. (#9879)
---
.../src/views/security/token-manage/use-table.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/dolphinscheduler-ui-next/src/views/security/token-manage/use-table.ts
b/dolphinscheduler-ui-next/src/views/security/token-manage/use-table.ts
index 37f75bb9e8..c017f44cef 100644
--- a/dolphinscheduler-ui-next/src/views/security/token-manage/use-table.ts
+++ b/dolphinscheduler-ui-next/src/views/security/token-manage/use-table.ts
@@ -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
})
})