增加修改支付宝账号后清除任务缓存
This commit is contained in:
@@ -6,6 +6,10 @@ import {
|
|||||||
function successCallBack(url){
|
function successCallBack(url){
|
||||||
if(url.includes('app/courseCollect/insertCourseCollect')){
|
if(url.includes('app/courseCollect/insertCourseCollect')){
|
||||||
cacheClear('chasingDrama')
|
cacheClear('chasingDrama')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(url.includes('app/user/updateUser') ){
|
||||||
|
cacheClear('renwu')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -79,6 +83,8 @@ module.exports = {
|
|||||||
success: function(result) {
|
success: function(result) {
|
||||||
if (result.data.code == 401) {
|
if (result.data.code == 401) {
|
||||||
that.logout();
|
that.logout();
|
||||||
|
}else{
|
||||||
|
successCallBack(url)
|
||||||
}
|
}
|
||||||
succ.call(self, result.data)
|
succ.call(self, result.data)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user