xieb
2025-03-06 8b23471d428d7d0a6444726cb5c1603a8b3d4010
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
  <div id="app">
    <router-view v-wechat-title="$route.meta.title"></router-view>
    <van-overlay :show="showif">
      <div class="wrapper">
        <van-loading type="spinner" size="80d" />
        <p>加载中</p>
      </div>
    </van-overlay>
  </div>
</template>
 
<script>
import store from './store/index'
export default {
  data() {
    return {};
  },
  created() {
    // console.log(store.state)
    //   Loginto(store.state.refreshdata).then(res => {
    //     console.log(res)
    //   })
  },
  computed: {
    showif() {
      return this.$store.state.overlayshow;
    }
  },
 
  methods: {}
};
</script>
 
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  p {
    font-size: 20px;
    margin-top: 10px;
    color: #a8a8a8;
  }
}
</style>