pc-master #275
@ -30,6 +30,10 @@
 | 
				
			|||||||
 
 | 
					 
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    mounted(){
 | 
					    mounted(){
 | 
				
			||||||
 | 
					         var router = this.$route.query;
 | 
				
			||||||
 | 
					      if(router.token){
 | 
				
			||||||
 | 
					      localStorage.setItem("token", router.token);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 let inputList = document.querySelectorAll('input');
 | 
					 let inputList = document.querySelectorAll('input');
 | 
				
			||||||
   for (let index = 0; index < inputList.length; index++) {
 | 
					   for (let index = 0; index < inputList.length; index++) {
 | 
				
			||||||
     inputList[index].onfocus = this.selectValue();//input放入焦点,全选文本
 | 
					     inputList[index].onfocus = this.selectValue();//input放入焦点,全选文本
 | 
				
			||||||
@ -37,7 +41,7 @@
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    methods:{
 | 
					    methods:{
 | 
				
			||||||
      //全选文本
 | 
					      //全选文本 
 | 
				
			||||||
selectValue(e) {
 | 
					selectValue(e) {
 | 
				
			||||||
	e.currentTarget.select();
 | 
						e.currentTarget.select();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user