This commit is contained in:
2018-11-13 21:59:51 +00:00
parent d14a8bb6c1
commit 86b2938879
7 changed files with 28 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
import logger from "../utils/logit";
import { getToken } from "../utils/authUtil";
import { getToken } from "../utils/authutil";
export default {
status(response) {

View File

@@ -24,13 +24,13 @@ Methods
var lt = {};
export default {
Get(key) {
get(key) {
if (!_.has(lt, key)) {
return "?" + key + "?";
}
return lt[key];
},
Fetch(keys) {
fetch(keys) {
return new Promise(function(resolve, reject) {
//step 1: build an array of keys that we don't have already
var NeedIt = [];
@@ -67,7 +67,7 @@ export default {
});
});
},
ClearCache() {
clearCache() {
lt = {};
}
};