feat: 对接各个视频数据

This commit is contained in:
zhongyidian committed 2025-12-30 19:42:47 +08:00
1 parent 6103453e32
commit 6ab98c4764
339 files changed
+17316 -1531

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
/**
* Vlog store - manages Vlog information
*/
export const useVlogStore = defineStore(
'vlog',
() => {
//State
//vlog-任务取景框引导
const isGuideVlogTask = ref<boolean>(true)
//vlog-是否解锁完成前置(观看视频)
const isVlogUnlock = ref<boolean>(false)
//vlog-发现与记录解锁进度
const vlogUnlockProgress = ref<number>(0)
//Actions
function setIsGuideVlogTask(value: boolean): void {
isGuideVlogTask.value = value
}
function setIsVlogUnlock(value: boolean): void {
isVlogUnlock.value = value
}
function setVlogUnlockProgress(value: number): void {
vlogUnlockProgress.value = value
}
return {
//State
setIsGuideVlogTask,
setIsVlogUnlock,
setVlogUnlockProgress,
//Actions
isGuideVlogTask,
isVlogUnlock,
vlogUnlockProgress
}
},
{
persist: true
}
)