Authored by 李奇

修改

@@ -170,7 +170,7 @@ Page(Object.assign({ @@ -170,7 +170,7 @@ Page(Object.assign({
170 } else { 170 } else {
171 this._init(); 171 this._init();
172 } 172 }
173 - }, 500) 173 + }, 1100)
174 }, 174 },
175 175
176 /** 176 /**
@@ -43,10 +43,11 @@ class Service { @@ -43,10 +43,11 @@ class Service {
43 return result 43 return result
44 }); 44 });
45 }; 45 };
  46 +
  47 + let needSwitch = g_sourceApiArry.indexOf(path) > -1;
46 48
47 - if (!app.globalData.hasSetSwitch) { 49 + if (!app.globalData.hasSetSwitch && needSwitch) {
48 return iconfSwitch().then(data => { 50 return iconfSwitch().then(data => {
49 - console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> _get switch');  
50 app.globalData.hasSetSwitch = true; 51 app.globalData.hasSetSwitch = true;
51 if (data['javaapi'] && '0' === data['javaapi']) { 52 if (data['javaapi'] && '0' === data['javaapi']) {
52 app.globalData.switch_javaApiEnable = false; 53 app.globalData.switch_javaApiEnable = false;