feat: add txs view for wasm contracts

This commit is contained in:
liangping
2023-08-07 11:20:18 +08:00
parent 86457a9a63
commit 2e71900f76
4 changed files with 83 additions and 3 deletions
+1 -1
View File
@@ -14,8 +14,8 @@ const pages = computed(() => {
if (total > 0 && props.limit && total > props.limit) {
let page = 0
while (true) {
if (page * props.limit > total) break
page += 1
if (page * props.limit > total) break
if (total / props.limit > 10 && page > showSize && page < (total / props.limit - showSize + 1)) {
if (!(page >= current.value - 1 && page <= current.value + 1)) {
continue