| | |
| | | * @description 清空后端缓存 |
| | | */ |
| | | cacheInterface (param) { |
| | | param.userid = sessionStorage.getItem('UserID') || '' |
| | | param.LoginUID = sessionStorage.getItem('LoginUID') || '' |
| | | param.appkey = window.GLOB.appkey || '' |
| | | |
| | | let url = '/webapi/excache' |
| | |
| | | clearBackCache = () => { |
| | | if (!window.GLOB.backend) return |
| | | |
| | | Api.cacheInterface({}).then(res => { |
| | | Api.cacheInterface({userid: sessionStorage.getItem('UserID') || '', LoginUID: sessionStorage.getItem('LoginUID') || ''}).then(res => { |
| | | if (!res.status) { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | duration: 5 |
| | | }) |
| | | } else if (window.GLOB.localSystemApi) { |
| | | Api.cacheInterface({rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')}).then(result => { |
| | | Api.cacheInterface({ |
| | | userid: sessionStorage.getItem('LocalUserID') || sessionStorage.getItem('UserID') || '', |
| | | LoginUID: sessionStorage.getItem('LocalLoginUID') || sessionStorage.getItem('LoginUID') || '', |
| | | rduri: window.GLOB.localSystemApi.replace('dostars', 'excache') |
| | | }).then(result => { |
| | | if (!result.status) { |
| | | notification.warning({ |
| | | top: 92, |