fixed mailto: links on home
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -123,6 +123,10 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    onClickLink(e){
 | 
			
		||||
      console.log("onClickLink", e, this.$router, this.$route)
 | 
			
		||||
      if (e.originalTarget.protocol == "mailto:") {
 | 
			
		||||
        // https://stackoverflow.com/questions/10172499/mailto-using-javascript
 | 
			
		||||
        window.location.href = e.originalTarget.href
 | 
			
		||||
      }else {
 | 
			
		||||
        let path = null;
 | 
			
		||||
        // find existing router route compared with link href
 | 
			
		||||
        for (let i = 0; i < this.$router.options.routes.length; i++) {
 | 
			
		||||
@@ -139,6 +143,7 @@ export default {
 | 
			
		||||
            path: path
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    onClickFieldLabel(e){
 | 
			
		||||
      console.log("onClickFieldLabel", e, this.$router, this.$route)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user