Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Last active August 31, 2019 03:51
Show Gist options
  • Save jsdecena/cbcd35542f18cc7a73bb3c5ea2144d61 to your computer and use it in GitHub Desktop.
Save jsdecena/cbcd35542f18cc7a73bb3c5ea2144d61 to your computer and use it in GitHub Desktop.
LandingPage.vue script
<script>
import SystemInformation from './LandingPage/SystemInformation'
export default {
name: 'landing-page',
components: { SystemInformation },
data () {
return {
posts: []
}
},
created () {
this.getPosts()
},
methods: {
open (link) {
this.$electron.shell.openExternal(link)
},
getPosts () {
const posts = JSON.parse(localStorage.getItem('posts'))
this.posts = posts
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment