feat: 增加主题色功能
This commit is contained in:
@@ -4,6 +4,7 @@ const PROFILE_KEY = 'user_profile'
|
||||
const OVERVIEW_KEY = 'user_overview'
|
||||
const PLAN_KEY = 'user_plan'
|
||||
const STATS_KEY = 'user_stats'
|
||||
const THEME_KEY = 'user_theme'
|
||||
const DEFAULT_RECORD_VALUE_KEY = 'user_default_record_value'
|
||||
|
||||
function getEmptyProfile(): IProfile {
|
||||
@@ -54,3 +55,11 @@ export function saveStats(data: string[]) {
|
||||
wx.setStorageSync(STATS_KEY, data)
|
||||
}
|
||||
|
||||
export function getThemeColor(): string {
|
||||
return wx.getStorageSync(THEME_KEY) || ''
|
||||
}
|
||||
|
||||
export function saveThemeColor(data: string) {
|
||||
wx.setStorageSync(THEME_KEY, data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user