Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/video_app into gaohao
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user