视频任务管理更新

This commit is contained in:
super
2026-07-19 22:23:26 +08:00
parent 69784b8d32
commit cbde22ec79
62 changed files with 2164 additions and 280 deletions
@@ -0,0 +1,20 @@
import { ref, watch } from 'vue'
export type ZiniaoVersion = 'new' | 'old'
const STORAGE_KEY = 'ziniao:version'
function loadZiniaoVersion(): ZiniaoVersion {
if (typeof window === 'undefined') return 'new'
return window.localStorage.getItem(STORAGE_KEY) === 'old' ? 'old' : 'new'
}
export function useZiniaoVersion() {
const ziniaoVersion = ref<ZiniaoVersion>(loadZiniaoVersion())
watch(ziniaoVersion, (value) => {
if (typeof window !== 'undefined') window.localStorage.setItem(STORAGE_KEY, value)
})
return ziniaoVersion
}