家谱APP首页样式设计完成,落地80%
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
const CURRENT_GENEALOGY_KEY = 'jiapu_current_genealogy_id'
|
||||
|
||||
export const genealogyContext = {
|
||||
getCurrentGenealogyId: () => uni.getStorageSync(CURRENT_GENEALOGY_KEY) || '',
|
||||
setCurrentGenealogyId: (genealogyId) => uni.setStorageSync(CURRENT_GENEALOGY_KEY, String(genealogyId)),
|
||||
clearCurrentGenealogyId: () => uni.removeStorageSync(CURRENT_GENEALOGY_KEY)
|
||||
}
|
||||
Reference in New Issue
Block a user