Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <div v-if="signedIn">
- <div id="app">
- <router-view/>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "App",
- data() {
- return {
- mgr: new Mgr(),
- signedIn: false
- };
- },
- mounted() {
- this.mgr.getSignedIn().then(
- signIn => {
- this.signedIn = signIn;
- },
- err => {
- console.log(err);
- }
- );
- }
- };
- </script>
- export default new Router({
- mode: "history",
- routes: [
- {
- path: "/",
- name: "Dashboard",
- component: Dashboard
- }
- ]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement