Showing
1 changed file
with
12 additions
and
4 deletions
@@ -130,7 +130,9 @@ const _getChannelResource = (params) => { | @@ -130,7 +130,9 @@ const _getChannelResource = (params) => { | ||
130 | params.new_device = true; // eslint-disable-line | 130 | params.new_device = true; // eslint-disable-line |
131 | } | 131 | } |
132 | 132 | ||
133 | - return api.get('operations/api/v5/resource/home', params, true).then(result => { | 133 | + return api.get('operations/api/v5/resource/home', params, { |
134 | + cache: true | ||
135 | + }).then(result => { | ||
134 | if (result && result.code === 200) { | 136 | if (result && result.code === 200) { |
135 | return resourcesProcess(result.data.list); | 137 | return resourcesProcess(result.data.list); |
136 | } else { | 138 | } else { |
@@ -148,7 +150,9 @@ const _getChannelResource = (params) => { | @@ -148,7 +150,9 @@ const _getChannelResource = (params) => { | ||
148 | const _getLeftNav = (choosed) => { | 150 | const _getLeftNav = (choosed) => { |
149 | choosed = choosed || 'all'; | 151 | choosed = choosed || 'all'; |
150 | 152 | ||
151 | - return api.get('operations/api/v6/category/getCategory', {}, true).then(result => { | 153 | + return api.get('operations/api/v6/category/getCategory', {}, { |
154 | + cache: true | ||
155 | + }).then(result => { | ||
152 | if (result && result.code === 200) { | 156 | if (result && result.code === 200) { |
153 | return _processSideBar(result.data, choosed); | 157 | return _processSideBar(result.data, choosed); |
154 | } else { | 158 | } else { |
@@ -163,7 +167,9 @@ const _getLeftNav = (choosed) => { | @@ -163,7 +167,9 @@ const _getLeftNav = (choosed) => { | ||
163 | * @return {[type]} | 167 | * @return {[type]} |
164 | */ | 168 | */ |
165 | const _getChannelList = () => { | 169 | const _getChannelList = () => { |
166 | - return api.get('operations/api/v5/entrance/getEntrance', {}, true).then((result) => { | 170 | + return api.get('operations/api/v5/entrance/getEntrance', {}, { |
171 | + cache: true | ||
172 | + }).then((result) => { | ||
167 | if (result && result.code === 200) { | 173 | if (result && result.code === 200) { |
168 | const list = {}; | 174 | const list = {}; |
169 | 175 | ||
@@ -198,7 +204,9 @@ const _getChannelList = () => { | @@ -198,7 +204,9 @@ const _getChannelList = () => { | ||
198 | const _getChannelBg = () => { | 204 | const _getChannelBg = () => { |
199 | return api.get('operations/api/v5/resource/get', { | 205 | return api.get('operations/api/v5/resource/get', { |
200 | content_code: contentCode.index | 206 | content_code: contentCode.index |
201 | - }, true).then(result => { | 207 | + }, { |
208 | + cache: true | ||
209 | + }).then(result => { | ||
202 | if (result && result.code === 200) { | 210 | if (result && result.code === 200) { |
203 | return result.data.length && result.data[0] && result.data[0].data && result.data[0].data.list[0]; | 211 | return result.data.length && result.data[0] && result.data[0].data && result.data[0].data.list[0]; |
204 | } else { | 212 | } else { |
-
Please register or login to post a comment