|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
|
- <div id="app">
|
3
|
|
- <router-view></router-view>
|
|
2
|
+ <div id="app" v-if="showPage">
|
|
3
|
+ <router-view ></router-view>
|
4
|
4
|
</div>
|
5
|
5
|
</template>
|
6
|
6
|
|
|
@@ -10,6 +10,11 @@ import { mapState, createNamespacedHelpers } from 'vuex'
|
10
|
10
|
const { mapActions: actions } = createNamespacedHelpers('userCenter')
|
11
|
11
|
export default {
|
12
|
12
|
name: 'app',
|
|
13
|
+ data () {
|
|
14
|
+ return {
|
|
15
|
+ showPage: false
|
|
16
|
+ }
|
|
17
|
+ },
|
13
|
18
|
components: {},
|
14
|
19
|
computed: {
|
15
|
20
|
...mapState({
|
|
@@ -23,7 +28,9 @@ export default {
|
23
|
28
|
} else {
|
24
|
29
|
this.code = null
|
25
|
30
|
}
|
26
|
|
- this.getUserInfo({ org: this.org, code: this.code })
|
|
31
|
+ this.getUserInfo({ org: this.org, code: this.code }).then(() => {
|
|
32
|
+ this.showPage = true
|
|
33
|
+ })
|
27
|
34
|
},
|
28
|
35
|
methods: {
|
29
|
36
|
...actions(['getUserInfo'])
|