This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import logger from "../utils/logit";
|
||||
import { getToken } from "../utils/authUtil";
|
||||
import { getToken } from "../utils/authutil";
|
||||
|
||||
export default {
|
||||
status(response) {
|
||||
|
||||
@@ -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 = {};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user