代码: //添加讲师 addTeacher(teacher){ return request({ url:/eduservice/teacher/addTeacher, method:‘post’, data:teacher }) } (2)在页面实现调用 代码: 讲师添加 <el-button type=“primary” :disabled=“saveBtnDisabled” @click=“saveOrUpdate()”>保存 取消