App.vue 953 B

1234567891011121314151617181920212223
  1. <template>
  2. <router-view />
  3. </template>
  4. <script lang="ts">
  5. import { defineComponent } from 'vue';
  6. import { useStore } from 'src/store'
  7. export default defineComponent({
  8. name: 'App',
  9. setup(){
  10. const $store = useStore()
  11. void (async () => $store.dispatch('simulationSetup/loadScattnlay'))()
  12. void $store.dispatch('guiRuntime/activateMaterial', 'main/Ag/McPeak.yml')
  13. void $store.dispatch('guiRuntime/activateMaterial', 'main/Au/McPeak.yml')
  14. void $store.dispatch('guiRuntime/activateMaterial', 'main/Al/McPeak.yml')
  15. void $store.dispatch('guiRuntime/activateMaterial', 'main/Cu/McPeak.yml')
  16. void $store.dispatch('guiRuntime/activateMaterial', 'main/Si/Green-2008.yml')
  17. void $store.dispatch('guiRuntime/activateMaterial', 'main/SiO2/Lemarchand.yml')
  18. void $store.dispatch('guiRuntime/activateMaterial', 'main/TiO2/Siefke.yml')
  19. void $store.dispatch('guiRuntime/activateMaterial', 'main/Pt/Werner.yml')
  20. }
  21. })
  22. </script>