|
@@ -127,6 +127,7 @@ export default {
|
|
|
created(){
|
|
|
this.classGroupId = this.$route.query.classGroupId;
|
|
|
this.token = localStorage.getItem('Authorization')
|
|
|
+ this.token = 'bearer+585ca4d9-683b-49ab-8025-463e4b8a998f'
|
|
|
if (!this.token || !this.classGroupId) {
|
|
|
this.onAppBack()
|
|
|
return
|
|
@@ -144,11 +145,11 @@ export default {
|
|
|
this.comment = this.json.one[this.one]+this.json.two[this.two]+this.json.three[this.three]+this.json.four[this.four]
|
|
|
this.item = this.one+','+this.two+','+this.three+','+this.four
|
|
|
addStudyReport({classGroupId:this.classGroupId,item:this.item,comment:this.comment}).then(res=>{
|
|
|
- if(res.code == 200){
|
|
|
+ if(res.data.code == 200){
|
|
|
this.$toast('提交成功')
|
|
|
this.onAppBack()
|
|
|
}else {
|
|
|
- this.$toast(res.msg)
|
|
|
+ this.$toast(res.data.msg)
|
|
|
}
|
|
|
})
|
|
|
|