接口修改

This commit is contained in:
taoxu 2023-12-15 17:42:09 +08:00
parent e4fcedb6e0
commit 80bf76e9db
3 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ const install = (Vue, vm) => {
// 所以哪怕您重新登录修改了Storage下一次的请求将会是最新值 // 所以哪怕您重新登录修改了Storage下一次的请求将会是最新值
// const token = uni.getStorageSync('token'); // const token = uni.getStorageSync('token');
const token = " Bearer e465eb9d9ae74b4dad7a63dbe0e54587" const token = " Bearer f545811267c149bc85fb14e8e8638e94"
// console.log("我是token", token) // console.log("我是token", token)
config.header.Authorization = token; config.header.Authorization = token;

View File

@ -172,7 +172,7 @@
}) })
}, },
getworkinfo() { 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) { if (res.code == 0) {

View File

@ -310,10 +310,10 @@
} }
}, },
onLoad(option) { onLoad(option) {
// uni.removeStorageSync('selectedClassInfo'); uni.removeStorageSync('selectedClassInfo');
// uni.removeStorageSync('selectedStuInfo'); uni.removeStorageSync('selectedStuInfo');
// uni.removeStorageSync('selectforwork'); uni.removeStorageSync('selectforwork');
// this.classinfo = JSON.parse(decodeURIComponent(option.classinfo)) this.classinfo = JSON.parse(decodeURIComponent(option.classinfo))
// let classinofs = [{ // let classinofs = [{
// name: '5', // name: '5',
// avatar: 'Excepteur', // avatar: 'Excepteur',