接口修改
This commit is contained in:
		
							parent
							
								
									e4fcedb6e0
								
							
						
					
					
						commit
						80bf76e9db
					
				| 
						 | 
				
			
			@ -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; 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user