My SMM panel
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

panel.vue 406 B

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>