|
@@ -132,6 +132,11 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ let params = this.$route.query;
|
|
|
+ if (params.Authorization) {
|
|
|
+ localStorage.setItem("Authorization", decodeURI(params.Authorization));
|
|
|
+ localStorage.setItem("userInfo", decodeURI(params.Authorization));
|
|
|
+ }
|
|
|
this.courseId = this.$route.query.id;
|
|
|
this.reviewId = parseInt(this.$route.query.reviewId);
|
|
|
this.isInside = this.$route.query.isInside;
|
|
@@ -140,6 +145,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ let params = this.$route.query;
|
|
|
+ if (params.Authorization) {
|
|
|
+ localStorage.setItem("Authorization", decodeURI(params.Authorization));
|
|
|
+ localStorage.setItem("userInfo", decodeURI(params.Authorization));
|
|
|
+ }
|
|
|
// 获取头部信息
|
|
|
if (this.reviewId) {
|
|
|
// 获取老评价
|