My SMM panel
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1234567891011121314151617181920
  1. <template>
  2. <sidebar :active="active"></sidebar>
  3. <transition name="fade" mode="out-in">
  4. <div v-if="active === ''" id="main">important info here</div>
  5. <div v-else-if="active === '#orders'" id="main">order info here</div>
  6. </transition>
  7. </template>
  8. <script>
  9. import Sidebar from './sidebar.vue'
  10. export default {
  11. components: {
  12. Sidebar,
  13. },
  14. data() {
  15. return {active: window.location.hash, }
  16. },
  17. }
  18. </script>