Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <template>
  2. <div>
  3. <div v-if="signedIn">
  4. <div id="app">
  5. <router-view/>
  6. </div>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "App",
  13. data() {
  14. return {
  15. mgr: new Mgr(),
  16. signedIn: false
  17. };
  18. },
  19. mounted() {
  20. this.mgr.getSignedIn().then(
  21. signIn => {
  22. this.signedIn = signIn;
  23. },
  24. err => {
  25. console.log(err);
  26. }
  27. );
  28. }
  29. };
  30. </script>
  31.  
  32. export default new Router({
  33. mode: "history",
  34. routes: [
  35. {
  36. path: "/",
  37. name: "Dashboard",
  38. component: Dashboard
  39. }
  40. ]
  41. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement