修改课程编辑报错,删除打印的日志

This commit is contained in:
18571350067 2022-03-30 09:34:06 +08:00
parent c1aa1f7abc
commit 257610227c
2 changed files with 0 additions and 5 deletions

View File

@ -149,7 +149,6 @@ export default {
methods: { methods: {
// //
loadData() { loadData() {
this.getCourseTreeData(0)
if (this.$route.query.id) { if (this.$route.query.id) {
getCourseDetails({ id: this.$route.query.id }).then((res) => { getCourseDetails({ id: this.$route.query.id }).then((res) => {
this.form = res.data this.form = res.data
@ -202,7 +201,6 @@ export default {
// //
goback() { goback() {
console.log('this.$route.query.type', this.$route.query.type)
this.$router.push({ this.$router.push({
// /course/CourseList/sys // /course/CourseList/sys
path: '/course/CourseList/' + this.$route.query.type, path: '/course/CourseList/' + this.$route.query.type,

View File

@ -62,12 +62,10 @@ export default {
this.detailData = res.data; this.detailData = res.data;
this.detailData.coverPath = JSON.parse(res.data.coverPath); this.detailData.coverPath = JSON.parse(res.data.coverPath);
console.log('JSON:::::', this.detailData.coverPath);
if (this.detailData.coverPath && this.detailData.coverPath.length != 0) { if (this.detailData.coverPath && this.detailData.coverPath.length != 0) {
this.detailData.imagePath = this.detailData.coverPath[0].url; 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 => { dictionaryDropDown({ dictionaryCode: '0008' }).then(res => {
this.dictCourseTag = res.data; this.dictCourseTag = res.data;
console.log(this.dictCourseTag);
// const tags = [] // const tags = []
// for (let i = 0; i < this.dictCourseTag.length; i++) { // for (let i = 0; i < this.dictCourseTag.length; i++) {