mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Clickable tags by nuxt-link
This commit is contained in:
parent
194178627d
commit
c3d28af321
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<ds-tag>
|
||||
<a v-bind:href="`/?hashtag=${id}`" target="_blank">#{{ id }}</a>
|
||||
<nuxt-link :to="hashtagUrl">#{{ id }}</nuxt-link>
|
||||
</ds-tag>
|
||||
</template>
|
||||
|
||||
@ -10,5 +10,10 @@ export default {
|
||||
props: {
|
||||
id: { type: String, required: true },
|
||||
},
|
||||
computed: {
|
||||
hashtagUrl() {
|
||||
return `/?hashtag=${this.id}`
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user