mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
修复新增超级管理员错误
This commit is contained in:
@@ -180,10 +180,15 @@ export default defineComponent({
|
||||
page_type: 1
|
||||
}).then((res: any) => {
|
||||
roleList.value = res.lists
|
||||
roleList.value.push({
|
||||
id: 0,
|
||||
name: '超级管理员'
|
||||
})
|
||||
|
||||
if (formData.value.id == 1) {
|
||||
roleList.value.push({
|
||||
id: 0,
|
||||
name: '超级管理员'
|
||||
})
|
||||
console.log(formData.value.id, 'formData.value.id')
|
||||
}
|
||||
|
||||
console.log('roleList.value', roleList.value)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user