修复新增超级管理员错误
This commit is contained in:
parent
daea2195f0
commit
d48b721a4e
|
|
@ -180,10 +180,15 @@ export default defineComponent({
|
||||||
page_type: 1
|
page_type: 1
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
roleList.value = res.lists
|
roleList.value = res.lists
|
||||||
|
|
||||||
|
if (formData.value.id == 1) {
|
||||||
roleList.value.push({
|
roleList.value.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
name: '超级管理员'
|
name: '超级管理员'
|
||||||
})
|
})
|
||||||
|
console.log(formData.value.id, 'formData.value.id')
|
||||||
|
}
|
||||||
|
|
||||||
console.log('roleList.value', roleList.value)
|
console.log('roleList.value', roleList.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue