迁移版本
This commit is contained in:
9
utils/cache.js
Normal file
9
utils/cache.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// 写入某个key到缓存
|
||||
export function setCache(key, value) {
|
||||
uni.setStorageSync(key, value)
|
||||
}
|
||||
|
||||
// 获取某个key的缓存
|
||||
export function getCache(key) {
|
||||
return uni.getStorageSync(key)
|
||||
}
|
||||
Reference in New Issue
Block a user