讲师管理bug

This commit is contained in:
zhangsir
2024-12-31 09:21:33 +08:00
parent 6ca854aab1
commit 13101873f3
4 changed files with 31 additions and 8 deletions

View File

@@ -753,6 +753,7 @@ export default {
getTeacherById({id:state.id}).then((res) => {
console.log("外部讲师详情", res.data);
state.formParam = res.data.data
state.formParam.defaultTeachingTime = state.formParam.defaultTeachingTime == null ? 0 : state.formParam.defaultTeachingTime
state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description
state.formParam.photo = state.formParam.photo == null ? null : state.formParam.photo.includes('upload') ? res.data.data.photo : '/upload'+res.data.data.photo
})