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

去掉默认值

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