|
@@ -69,7 +69,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
isReview() {
|
|
|
- return this.$route.query.reviewId;
|
|
|
+ return this.$route.query.reviewId && this.$route.query.reviewId > 0;
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -89,9 +89,9 @@ export default {
|
|
|
if(this.isReview) {
|
|
|
const res = await getReviewInfo({ id: this.userInfo.reviewId });
|
|
|
const result = res.data
|
|
|
- tempMemo = result.courseScheduleReview.memo || '该课程未设置教学内容'
|
|
|
+ tempMemo = result.courseScheduleReview.memo
|
|
|
}
|
|
|
- this.memo = tempMemo
|
|
|
+ this.memo = tempMemo || '该课程未设置教学内容'
|
|
|
} catch {
|
|
|
//
|
|
|
}
|