Level2.vue 507 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div
  3. class="home"
  4. >
  5. {{ $env.BASE_URL }}
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'HomeView',
  11. data() {
  12. return {
  13. }
  14. },
  15. computed: {
  16. ...mapState([
  17. ]),
  18. },
  19. mounted() {
  20. console.log(process.env)
  21. this.$mitt.emit('test', { msg: 'home mounted' })
  22. },
  23. unmounted() {
  24. },
  25. methods: {
  26. ...mapMutations([
  27. ]),
  28. },
  29. }
  30. </script>
  31. <style lang="less" scoped>
  32. .home {
  33. width: 100%;
  34. height: 100%;
  35. }
  36. </style>