CN-39 feat: 地图

This commit is contained in:
chenjinsong
2021-07-01 15:39:48 +08:00
parent fbdf0ba81e
commit 3a30733be0
29 changed files with 126 additions and 5867 deletions

17
src/utils/cache.js Normal file
View File

@@ -0,0 +1,17 @@
/**
* 缓存
* @author 陈劲松
* @date 2021/6/30
*/
const cache = {
capitalGeo: null
}
export function getCache (key, defaultValue = null) {
return cache[key] ? cache[key] : defaultValue
}
export function setCache (key, value) {
cache[key] = value
}