App.vue 893 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--
  2. * @Author: your name
  3. * @Date: 2020-01-20 08:56:10
  4. * @LastEditTime: 2020-05-29 10:40:15
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \admin-frame\src\App.vue
  8. -->
  9. <template>
  10. <FooterPage id="app">
  11. <div class="weui-loadmore" v-if="loading">
  12. <i class="weui-loading"></i>
  13. <span class="weui-loadmore__tips">正在加载</span>
  14. </div>
  15. <router-view v-else />
  16. </FooterPage>
  17. </template>
  18. <script>
  19. import { mapActions, mapState } from 'vuex';
  20. // import ScrollPage from '@naf/layouts/scroll-page';
  21. import FooterPage from '@naf/layouts/footer-page';
  22. export default {
  23. name: 'App',
  24. components: {
  25. FooterPage,
  26. },
  27. metaInfo: {
  28. title: '系统管理',
  29. },
  30. computed: {
  31. ...mapState(['loading']),
  32. },
  33. methods: {
  34. ...mapActions(['load']),
  35. },
  36. async created() {
  37. await this.load();
  38. },
  39. };
  40. </script>