diff --git a/common/httpRequest.js b/common/httpRequest.js index 9adb7c2..f3d1c45 100644 --- a/common/httpRequest.js +++ b/common/httpRequest.js @@ -6,6 +6,10 @@ import { function successCallBack(url){ if(url.includes('app/courseCollect/insertCourseCollect')){ cacheClear('chasingDrama') + return + } + if(url.includes('app/user/updateUser') ){ + cacheClear('renwu') } } module.exports = { @@ -79,6 +83,8 @@ module.exports = { success: function(result) { if (result.data.code == 401) { that.logout(); + }else{ + successCallBack(url) } succ.call(self, result.data) },