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>
|
||||
<div class="tag">
|
||||
<div class="tag" @click="openTag(tag)">
|
||||
<div class="icon">
|
||||
<icon name="hashtag"></icon>
|
||||
</div>
|
||||
|
@ -17,6 +17,14 @@ export default {
|
|||
type: Object,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openTag (tag) {
|
||||
this.$router.push(`/${this.id()}/hashtag/${tag.name}`)
|
||||
},
|
||||
id () {
|
||||
return this.$route.params.id
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue