Skip to content

Commit 7eb2563

Browse files
committed
address comments
1 parent 6de2efa commit 7eb2563

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

lib/default-theme/NavLink.vue

+7-13
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
<router-link
33
class="router-link"
44
:to="item.link"
5-
v-if="!isExternal(item.link)">
6-
{{ item.text }}
7-
</router-link>
5+
v-if="!isExternal(item.link)"
6+
>{{ item.text }}</router-link>
87
<a
98
v-else
109
:href="item.link"
1110
target="_blank"
12-
class="router-link">
13-
{{ item.text }}
14-
</a>
11+
class="router-link"
12+
>{{ item.text }}</a>
1513
</template>
1614

1715
<script>
@@ -22,12 +20,8 @@
2220
required: true
2321
}
2422
},
25-
mixins: [
26-
{
27-
methods: {
28-
isExternal
29-
}
30-
}
31-
]
23+
methods: {
24+
isExternal
25+
}
3226
}
3327
</script>

0 commit comments

Comments
 (0)