提交 e96fef39 编写于 作者: guofeng.chen's avatar guofeng.chen

去掉默认值

上级 55e867f2
......@@ -164,8 +164,8 @@ export default {
},
methods: {
getCourseInfo() {
const { courseId = 6 } = this.$route.query;
const projectId = this.projectId || 797;
const { courseId } = this.$route.query;
const projectId = this.projectId;
this.showLoading = true;
this.GET(`contents/courses/${courseId}/pcCourseInfo`, { projectId }).then(res => {
this.showLoading = false;
......@@ -345,8 +345,8 @@ export default {
},
// 刷新目录进度
refreshCatalog() {
const { courseId = 6 } = this.$route.query;
const projectId = this.projectId || 797;
const { courseId } = this.$route.query;
const projectId = this.projectId;
this.GET(`contents/courses/${courseId}/pcCourseInfo`, { projectId }).then(res => {
if (res.code == "000000") {
const {
......@@ -365,8 +365,8 @@ export default {
})
},
getCourseQas() {
const { courseId = 3 } = this.$route.query;
const projectId = this.projectId || 797;
const { courseId } = this.$route.query;
const projectId = this.projectId;
this.GET(`contents/courses/v2/${courseId}/qas`, { projectId, pageNo: 1, pageSize: 10 }).then(res => {
if (res.code == "000000") {
this.qsList = res.data.model && res.data.model.qaPostModel || [];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册