Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 14, 2018
1 parent 6de2efa commit 7eb2563
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions lib/default-theme/NavLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
<router-link
class="router-link"
:to="item.link"
v-if="!isExternal(item.link)">
{{ item.text }}
</router-link>
v-if="!isExternal(item.link)"
>{{ item.text }}</router-link>
<a
v-else
:href="item.link"
target="_blank"
class="router-link">
{{ item.text }}
</a>
class="router-link"
>{{ item.text }}</a>
</template>

<script>
Expand All @@ -22,12 +20,8 @@
required: true
}
},
mixins: [
{
methods: {
isExternal
}
}
]
methods: {
isExternal
}
}
</script>

0 comments on commit 7eb2563

Please sign in to comment.