From f5be5245d61ee218361c907979f9a6a18c7a5deb Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Fri, 6 Nov 2026 09:32:50 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E8=A7=92=E8=89=B2=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=88=97=E8=A1=A8=E6=8E=A5=E5=85=A5=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/views/authority/role.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/authority/role.vue b/src/views/authority/role.vue index f17267c..3a6cce2 100644 --- a/src/views/authority/role.vue +++ b/src/views/authority/role.vue @@ -6,6 +6,7 @@ :data="data" ref="crud" v-model="form" + v-model:page="page" :permission="permissionList" :before-open="beforeOpen" @row-del="rowDel" @@ -729,7 +730,9 @@ export default { onLoad(page, params = {}) { this.loading = true; getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { - this.data = res.data.data; + const data = res.data.data || {}; + this.data = data.records || []; + this.page.total = data.total || 0; this.loading = false; this.selectionClear(); });