fix(pl): 保留统计分页总数并避免刷新取消权限初始化。

This commit is contained in:
wuzilong committed 2026-11-01 22:20:24 +08:00
1 parent 013ca2f164
commit f9c489531d
2 files changed
+89 -4

No files matched your search

@@ -229,19 +229,23 @@
{ onChange: search }
)
watchVisibleColumns(visibleColumns)
function clear() {
function clearResults() {
loader.invalidate()
epoch++
rows.value = []
fixedDetail.value = undefined
total.value = 0
loading.value = false
error.value = ''
Object.keys(details).forEach((k) => delete details[k])
}
function clear() {
clearResults()
total.value = 0
page.value = 1
}
async function load() {
clear()
if (!allowed.value || !props.active) return
clearResults()
const current = epoch
loading.value = true
try {