问题:使用v-for遍历创建el-select的el-option,两个同样的下拉框,学院下拉框的el-option可以正常显示lable的值,而专业下拉框总是显示value的值

/**挂载时获得所有学院信息 */
async function findAllFaculty(){
await axios.get('http://localhost:8082/admin/findAllFaculty')
.then((res) => {
// console.log(res)
// console.log(res.data)
facultyList.push(...res.data)
console.log(facultyList)
})
.catch(error => {
console.log("get错误信息"+error)
});
}
/**根据所选学院,动态搜索该学院下的专业 */
async function findAllDep(val){
await axios.get('http://localhost:8082/admin/findAllDep',{
params:{
facultyId:val
}
})
.then((res) => {
departmentList.length=0
departmentList.push(...res.data)
console.log(departmentList)
})
.catch(error => {
console.log("get错误信息"+error)
});
}
// console.log(dataForm.department)
const submitForm = (ruleFormRef)=>{}
const resetForm = (ruleFormRef)=>{}
onMounted(() => {
findAllFaculty()
})


浏览器显示


控制台输出

