diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 004bf4f..62a6a14 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -42,7 +42,7 @@ const install = (Vue, vm) => { // 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值 // const token = uni.getStorageSync('token'); - const token = " Bearer e465eb9d9ae74b4dad7a63dbe0e54587" + const token = " Bearer f545811267c149bc85fb14e8e8638e94" // console.log("我是token", token) config.header.Authorization = token; diff --git a/pages_teacher/teacher_class/class_detail.vue b/pages_teacher/teacher_class/class_detail.vue index 7c43fcf..80931ad 100644 --- a/pages_teacher/teacher_class/class_detail.vue +++ b/pages_teacher/teacher_class/class_detail.vue @@ -172,7 +172,7 @@ }) }, getworkinfo() { - this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record?classroomId=${this.classid}`).then(res => { + this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record/list?classId=${this.classid}`).then(res => { if (res.code == 0) { diff --git a/pages_teacher/teacher_teachers/teacher_addOperation.vue b/pages_teacher/teacher_teachers/teacher_addOperation.vue index a48574b..255f26d 100644 --- a/pages_teacher/teacher_teachers/teacher_addOperation.vue +++ b/pages_teacher/teacher_teachers/teacher_addOperation.vue @@ -310,10 +310,10 @@ } }, onLoad(option) { - // uni.removeStorageSync('selectedClassInfo'); - // uni.removeStorageSync('selectedStuInfo'); - // uni.removeStorageSync('selectforwork'); - // this.classinfo = JSON.parse(decodeURIComponent(option.classinfo)) + uni.removeStorageSync('selectedClassInfo'); + uni.removeStorageSync('selectedStuInfo'); + uni.removeStorageSync('selectforwork'); + this.classinfo = JSON.parse(decodeURIComponent(option.classinfo)) // let classinofs = [{ // name: '阅读5班', // avatar: 'Excepteur',