refs #714 Jump to hashtag timeline when click a result of searching
This commit is contained in:
parent
3813184096
commit
3bdfa22ff8
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="tag">
|
<div class="tag" @click="openTag(tag)">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<icon name="hashtag"></icon>
|
<icon name="hashtag"></icon>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,6 +17,14 @@ export default {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null
|
default: null
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
openTag (tag) {
|
||||||
|
this.$router.push(`/${this.id()}/hashtag/${tag.name}`)
|
||||||
|
},
|
||||||
|
id () {
|
||||||
|
return this.$route.params.id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue