chore: 更新素材资源和组件优化
- 更新陈云、鲁迅、聂耳等故居的展品图片素材 - 更新拼图细节图片 - 优化学习地图底图和详情图 - 更新音频素材 - 优化各故居 store 和页面组件
This commit is contained in:
1 parent
165374b986
commit
d445f81e60
159 files changed
+4238
-654
No files matched your search
@@ -184,6 +184,17 @@ export async function getUserDefineResult(
|
||||
return getUserDefineResultAsyncInternal(lessonId, key, options)
|
||||
}
|
||||
|
||||
export function parseUserDefineContent<T>(content: string): T {
|
||||
const raw = JSON.parse(content)
|
||||
if (useUserStore.getState().yibanConnectionStatus === 'connected') {
|
||||
return raw as T
|
||||
}
|
||||
if (raw && typeof raw === 'object' && 'state' in raw) {
|
||||
return (raw as { state: T }).state
|
||||
}
|
||||
return raw as T
|
||||
}
|
||||
|
||||
// 根据课时顺序号(所处课程的第几课时)更新对应易班平台上的每个环节进度(异步)
|
||||
export async function setCourseTimeProgress(order: number): Promise<boolean> {
|
||||
if (useUserStore.getState().yibanConnectionStatus !== 'connected') {
|
||||
|
||||
Reference in new issue
Block a user