修复跳转到历史记录传承null字符串引起的跳转失败问题
This commit is contained in:
@@ -1356,9 +1356,8 @@
|
|||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.isCollect = res.data.collect ? true : false;
|
this.isCollect = res.data.collect ? true : false;
|
||||||
if (res.data && res.data.courseDetailsId && !this.courseDetailsId && !courseDetailsId) {
|
courseDetailsId=(courseDetailsId&&courseDetailsId!=='null')?courseDetailsId: res.data.current.courseDetailsId
|
||||||
courseDetailsId = res.data.courseDetailsId
|
|
||||||
}
|
|
||||||
this.courseDetailsId = courseDetailsId
|
this.courseDetailsId = courseDetailsId
|
||||||
if (res.data.list) {
|
if (res.data.list) {
|
||||||
this.info = res.data;
|
this.info = res.data;
|
||||||
|
|||||||
@@ -1578,10 +1578,12 @@
|
|||||||
if (res.data && res.data.dyCourseId) {
|
if (res.data && res.data.dyCourseId) {
|
||||||
this.dyCourseId = "" + res.data.dyCourseId;
|
this.dyCourseId = "" + res.data.dyCourseId;
|
||||||
}
|
}
|
||||||
if (res.data && res.data.courseDetailsId && !this.courseDetailsId && !courseDetailsId) {
|
// if (res.data && res.data.courseDetailsId && !this.courseDetailsId && !courseDetailsId) {
|
||||||
this.courseDetailsId = res.data.courseDetailsId
|
// this.courseDetailsId = res.data.courseDetailsId
|
||||||
courseDetailsId = res.data.courseDetailsId
|
// courseDetailsId = res.data.courseDetailsId
|
||||||
}
|
// }
|
||||||
|
courseDetailsId=(courseDetailsId&&courseDetailsId!=='null')?courseDetailsId: res.data.current.courseDetailsId
|
||||||
|
this.courseDetailsId = courseDetailsId
|
||||||
if (res.data.list) {
|
if (res.data.list) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.title = this.info.title
|
this.title = this.info.title
|
||||||
@@ -1638,7 +1640,6 @@
|
|||||||
} else { //直接跳转进来的
|
} else { //直接跳转进来的
|
||||||
|
|
||||||
let indexs = -1
|
let indexs = -1
|
||||||
courseDetailsId=courseDetailsId?courseDetailsId: res.data.current.courseDetailsId
|
|
||||||
if (courseDetailsId) { //从记录进来的
|
if (courseDetailsId) { //从记录进来的
|
||||||
this.meunList.map((item, index) => {
|
this.meunList.map((item, index) => {
|
||||||
if (item.courseDetailsId ==courseDetailsId) {
|
if (item.courseDetailsId ==courseDetailsId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user