index.vue.tpl 465 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="{{ .Snake }}">
  3. 在此处书写页面代码
  4. </div>
  5. </template>
  6. <script setup>
  7. import { ref } from 'vue'
  8. import { routerName } from '@/plugin/{{ .Snake }}/api/api.js'
  9. const data = ref({})
  10. defineOptions({
  11. name: '{{ .PlugName }}'
  12. })
  13. const useApi = async() =>{
  14. const res = await routerName(data.value)
  15. if(res.code === 0){
  16. console.log(res.data)
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. .{{ .Snake }} {
  22. }
  23. </style>