feat: 闯关页场景/拼音/朗读/互动分发集成,学堂弹层注音朗读
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { reactive } from 'vue'
|
||||
|
||||
const AUTH_KEY = '36wisdom_auth'
|
||||
const CHILD_KEY = '36wisdom_child'
|
||||
const AGE_KEY = '36wisdom_child_age'
|
||||
|
||||
function loadAuth() {
|
||||
const saved = uni.getStorageSync(AUTH_KEY)
|
||||
@@ -46,3 +47,11 @@ export function clearAuth() {
|
||||
state.parentId = 0
|
||||
uni.removeStorageSync(AUTH_KEY)
|
||||
}
|
||||
|
||||
export function getChildAge() {
|
||||
return uni.getStorageSync(AGE_KEY) || '4-6'
|
||||
}
|
||||
|
||||
export function setChildAge(age) {
|
||||
uni.setStorageSync(AGE_KEY, age)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user