Blame view

src/components/Intermediate.vue 649 Bytes
298fff252   Digvijay Singh   new design added
1
2
3
4
5
6
7
8
9
10
11
12
13
  <template>
  
      <div class="contact-page">
          <p>Loading</p>
      </div>
  </template>
  
  <script>
      import router from '../router'
      export default {
          name: 'Intermediate',
          data() {
              var userdata = localStorage.getItem('spotlight_usertoken')
2991bacc1   Digvijay Singh   ui flow change
14
              var userid = localStorage.getItem('spotlight_id')
298fff252   Digvijay Singh   new design added
15
              if(userdata){
2991bacc1   Digvijay Singh   ui flow change
16
17
18
19
                  router.push({ name: 'Profile',
                              params: {
                                id: userid,
                              }, });
298fff252   Digvijay Singh   new design added
20
21
22
23
24
25
26
              }
              return {
                  msg: 'Welcome to Your Vue.js App'
              }
          },
      }
  </script>