Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Last active August 31, 2019 05:05
Show Gist options
  • Save jsdecena/4e31c899efe395114d332172787cb3bf to your computer and use it in GitHub Desktop.
Save jsdecena/4e31c899efe395114d332172787cb3bf to your computer and use it in GitHub Desktop.
All Create js
<script>
import SystemInformation from './LandingPage/SystemInformation'
export default {
name: 'landing-page',
components: { SystemInformation },
data () {
return {
posts: [],
success: null
}
},
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