1
This commit is contained in:
		
							parent
							
								
									478145c8e9
								
							
						
					
					
						commit
						d9a914d963
					
				@ -184,7 +184,7 @@ export default {
 | 
			
		||||
        },
 | 
			
		||||
        //获取设备
 | 
			
		||||
        getEqbyid() {
 | 
			
		||||
            var userInfo = JSON.parse(localStorage.getItem('userInfo'))
 | 
			
		||||
            var userInfo =localStorage.getItem('userInfo')? JSON.parse(localStorage.getItem('userInfo')):{userid:-1}
 | 
			
		||||
            this.api.getEqbyid(userInfo.userid).then((res) => {
 | 
			
		||||
                if (res.data.code == 200) {
 | 
			
		||||
                    this.$store.state.equipmentList = res.data.data.map((item, index) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user