This commit is contained in:
GaoHao
2024-12-30 19:30:25 +08:00
9 changed files with 211 additions and 113 deletions

View File

@@ -1,8 +1,13 @@
import configdata from './config'
import cache from './cache'
import {
cacheClearAll
cacheClearAll,cacheClear
} from '@/store/cashe.js'
function successCallBack(url){
if(url.includes('app/courseCollect/insertCourseCollect')){
cacheClear('chasingDrama')
}
}
module.exports = {
config: function(name) {
var info = null;
@@ -151,7 +156,11 @@ module.exports = {
success: function(result) {
if (result.data.code == 401) {
that.logout();
}else{
successCallBack(url)
// cacheClear('chasingDrama')
}
succ.call(self, result.data)
},
fail: function(e) {