refine code
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <svg :class="svgClass" aria-hidden="true">
 | 
					  <svg :class="svgClass" aria-hidden="true" v-on="$listeners">
 | 
				
			||||||
    <use :xlink:href="iconName"/>
 | 
					    <use :xlink:href="iconName"/>
 | 
				
			||||||
  </svg>
 | 
					  </svg>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,11 +17,8 @@ export default {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    isExternalLink(routePath) {
 | 
					 | 
				
			||||||
      return isExternal(routePath)
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    linkProps(url) {
 | 
					    linkProps(url) {
 | 
				
			||||||
      if (this.isExternalLink(url)) {
 | 
					      if (isExternal(url)) {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
          is: 'a',
 | 
					          is: 'a',
 | 
				
			||||||
          href: url,
 | 
					          href: url,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user