Showing
1 changed file
with
7 additions
and
6 deletions
@@ -33,12 +33,15 @@ export default { | @@ -33,12 +33,15 @@ export default { | ||
33 | } | 33 | } |
34 | }, | 34 | }, |
35 | mounted() { | 35 | mounted() { |
36 | - this.$yoho.getNavStatus('', res => { | ||
37 | - if (res === 'N') { | ||
38 | - this.SET_STATUS_BAR_STATUS({status: false}); | ||
39 | - } | 36 | + this.$yoho.ready(() => { |
37 | + this.$yoho.getNavStatus('', res => { | ||
38 | + if (res === 'N') { | ||
39 | + this.SET_STATUS_BAR_STATUS({status: false}); | ||
40 | + } | ||
41 | + }); | ||
40 | }); | 42 | }); |
41 | 43 | ||
44 | + | ||
42 | const barColor = get(this.$route, 'meta.statusBarColor'); | 45 | const barColor = get(this.$route, 'meta.statusBarColor'); |
43 | 46 | ||
44 | if (barColor) { | 47 | if (barColor) { |
@@ -62,8 +65,6 @@ export default { | @@ -62,8 +65,6 @@ export default { | ||
62 | this.$yoho.setStatusBar({statusBarColor}); | 65 | this.$yoho.setStatusBar({statusBarColor}); |
63 | } | 66 | } |
64 | } | 67 | } |
65 | - | ||
66 | - | ||
67 | }); | 68 | }); |
68 | 69 | ||
69 | if (process.env.NODE_ENV === 'development') { | 70 | if (process.env.NODE_ENV === 'development') { |
-
Please register or login to post a comment