micro.hbs 596 B

123456789101112131415161718192021222324252627
  1. <script setup lang="ts">
  2. import { micro, plugins } from '@/utils/micro'
  3. import { useUserStore } from '@/stores/user'
  4. const microName = '{{name}}'
  5. const { getMicroByName, mainRouteWatch } = micro
  6. const microConfig = getMicroByName(microName)
  7. mainRouteWatch(microName)
  8. const route = useRoute()
  9. const userStore = useUserStore()
  10. </script>
  11. <template>
  12. <WujieVue
  13. width="100%"
  14. height="100%"
  15. :name="microName"
  16. :url="micro.url + route.path"
  17. :sync="true"
  18. :plugins="plugins"
  19. :props="{ token: userStore.token }"
  20. ></WujieVue>
  21. </template>
  22. <style lang="scss" scoped></style>