修改课程编辑报错,删除打印的日志
This commit is contained in:
parent
c1aa1f7abc
commit
257610227c
|
@ -149,7 +149,6 @@ export default {
|
|||
methods: {
|
||||
//加载数据
|
||||
loadData() {
|
||||
this.getCourseTreeData(0)
|
||||
if (this.$route.query.id) {
|
||||
getCourseDetails({ id: this.$route.query.id }).then((res) => {
|
||||
this.form = res.data
|
||||
|
@ -202,7 +201,6 @@ export default {
|
|||
|
||||
//返回
|
||||
goback() {
|
||||
console.log('this.$route.query.type', this.$route.query.type)
|
||||
this.$router.push({
|
||||
// /course/CourseList/sys
|
||||
path: '/course/CourseList/' + this.$route.query.type,
|
||||
|
|
|
@ -62,12 +62,10 @@ export default {
|
|||
this.detailData = res.data;
|
||||
|
||||
this.detailData.coverPath = JSON.parse(res.data.coverPath);
|
||||
console.log('JSON:::::', this.detailData.coverPath);
|
||||
|
||||
if (this.detailData.coverPath && this.detailData.coverPath.length != 0) {
|
||||
this.detailData.imagePath = this.detailData.coverPath[0].url;
|
||||
}
|
||||
console.log('url', this.detailData.imagePath);
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -109,7 +107,6 @@ export default {
|
|||
dictionaryDropDown({ dictionaryCode: '0008' }).then(res => {
|
||||
this.dictCourseTag = res.data;
|
||||
|
||||
console.log(this.dictCourseTag);
|
||||
|
||||
// const tags = []
|
||||
// for (let i = 0; i < this.dictCourseTag.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue