修复新增超级管理员错误

This commit is contained in:
Mrtangl 2022-04-28 18:36:16 +08:00
parent daea2195f0
commit d48b721a4e
1 changed files with 9 additions and 4 deletions

View File

@ -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)
})
}