✨ Add viewer
This commit is contained in:
@@ -5,5 +5,13 @@ export default
|
||||
props:
|
||||
{
|
||||
content: { type: Object }
|
||||
},
|
||||
|
||||
methods:
|
||||
{
|
||||
onClick()
|
||||
{
|
||||
this.$store.commit('setVersion', this.content)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
<div class="version">
|
||||
{{ content }}
|
||||
</div>
|
||||
<a href="#" class="version" @click.prevent="onClick">
|
||||
{{ content.date }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user