完成前端部署内容

This commit is contained in:
super
2026-01-15 13:17:41 +08:00
parent 8fa07e4952
commit 183b295e40
34 changed files with 3564 additions and 655 deletions

View File

@@ -119,7 +119,7 @@ async function loadData() {
loading.value = true
try {
const res = await getRolePage({ pageSize: 100 })
tableData.value = res.data.data.records || []
tableData.value = res.records || []
} catch (error) {
console.error('加载数据失败:', error)
} finally {
@@ -161,7 +161,7 @@ async function handleAssignMenus(record: RoleRecord) {
// 加载角色已有的菜单
const roleMenuRes = await getRoleMenuIds(record.id)
checkedMenuIds.value = roleMenuRes.data.data || []
checkedMenuIds.value = roleMenuRes || []
} catch (error) {
console.error('加载数据失败:', error)
} finally {