App.vue 555 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <layout-entry>
  3. <router-view v-slot="{Component}">
  4. <keep-alive ref="keep" :include="$store.state.router.keepLiveRoute">
  5. <component :is="Component"></component>
  6. </keep-alive>
  7. </router-view>
  8. </layout-entry>
  9. </template>
  10. <script>
  11. import {layoutEntry} from '$layout';
  12. import config from '$config/config';
  13. export default {
  14. components:{
  15. layoutEntry
  16. },
  17. created() {
  18. return config.register(this);
  19. }
  20. }
  21. </script>
  22. <style lang="scss">
  23. @import "assets/scss/entry/index";
  24. </style>