App.vue 641 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!-- <template>
  2. <div>
  3. <p>你好</p>
  4. <h1>{{ msg }}</h1>
  5. <button @click="changeMsg">修改</button>
  6. </div>
  7. </template>
  8. <script lang="ts" >
  9. export default {
  10. // data() {
  11. // return {
  12. // msg:"111"
  13. // }
  14. // },
  15. // methods:{
  16. // changeMsg() {
  17. // this.msg = '222';
  18. // }
  19. // }
  20. }
  21. </script>
  22. <style lang="scss" scoped>
  23. </style> -->
  24. <template>
  25. <div>
  26. <h1>首页</h1>
  27. <Demo1></Demo1>
  28. </div>
  29. </template>
  30. <script lang="ts" setup>
  31. import Demo1 from './components/Demo1.vue';
  32. // export default {
  33. // // components:{
  34. // // Demo1
  35. // // }
  36. // }
  37. </script>
  38. <style lang="scss" scoped>
  39. </style>