Authored by yyq

fix getNavStatus

@@ -33,11 +33,14 @@ export default { @@ -33,11 +33,14 @@ export default {
33 } 33 }
34 }, 34 },
35 mounted() { 35 mounted() {
  36 + this.$yoho.ready(() => {
36 this.$yoho.getNavStatus('', res => { 37 this.$yoho.getNavStatus('', res => {
37 if (res === 'N') { 38 if (res === 'N') {
38 this.SET_STATUS_BAR_STATUS({status: false}); 39 this.SET_STATUS_BAR_STATUS({status: false});
39 } 40 }
40 }); 41 });
  42 + });
  43 +
41 44
42 const barColor = get(this.$route, 'meta.statusBarColor'); 45 const barColor = get(this.$route, 'meta.statusBarColor');
43 46
@@ -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') {