bench.vue 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <section class="bench-main">
  3. <router-view v-slot="{ Component }">
  4. <transition>
  5. <component :is="Component" @getProcessParentId="getProcessParentId"/>
  6. </transition>
  7. </router-view>
  8. </section>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'Bench',
  13. watch:{
  14. $route: {
  15. deep: true,
  16. immediate: true,
  17. handler() {
  18. },
  19. },
  20. },
  21. data(){
  22. return {
  23. }
  24. },
  25. created(){
  26. },
  27. computed: {
  28. },
  29. methods:{
  30. getProcessParentId(value){
  31. this.$emit("getProcessParentId",value);
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .bench-main {
  38. width: 100%;
  39. }
  40. </style>