Last active
August 31, 2019 03:51
-
-
Save jsdecena/cbcd35542f18cc7a73bb3c5ea2144d61 to your computer and use it in GitHub Desktop.
LandingPage.vue script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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