refs #714 Jump to hashtag timeline when click a result of searching

This commit is contained in:
AkiraFukushima 2018-11-22 23:54:18 +09:00
parent 3813184096
commit 3bdfa22ff8
1 changed files with 9 additions and 1 deletions

View File

@ -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>