refactor: 优化UserInfo组件,使用Reflect解码listData中的URI
This commit is contained in:
		
							parent
							
								
									e7ed80acf8
								
							
						
					
					
						commit
						1c5d5c78c3
					
				| @ -711,10 +711,12 @@ struct UserInfo { | ||||
|             this.startExam = true | ||||
|           } | ||||
|           listData.id = index.toString() | ||||
|           // TODO 需要修改 | ||||
|           // for (let i in listData) { | ||||
|           //   listData[i] = decodeURI(listData[i]) | ||||
|           // } | ||||
|           Object.keys(listData).forEach((key) => { | ||||
|             Reflect.set(listData, key, decodeURI(Reflect.get(listData, key))); | ||||
|           }); | ||||
|           if (this.systemParam.Param828Str == '1' || this.systemParam.Param828Str == '2') { | ||||
|             // listData.ksy2=listData.ksy1; | ||||
|             listData.ksy2 = this.examinerLoginInfo.kgxm | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user