Showing
2 changed files
with
4 additions
and
3 deletions
@@ -44,9 +44,10 @@ class Service { | @@ -44,9 +44,10 @@ class Service { | ||
44 | }); | 44 | }); |
45 | }; | 45 | }; |
46 | 46 | ||
47 | - if (!app.globalData.hasSetSwitch) { | 47 | + let needSwitch = g_sourceApiArry.indexOf(path) > -1; |
48 | + | ||
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; |
-
Please register or login to post a comment