重新布局,添加教程

This commit is contained in:
2025-02-25 00:56:42 +08:00
parent a6c0a5681f
commit 942c1fb59d
15 changed files with 171 additions and 37 deletions

View File

@@ -23,3 +23,14 @@ export const size = useStorage("web-fontsize", 24)
export function changeSize(num: number) {
size.value = num
}
export const step = useStorage("web-turtorial-step", "01")
export const content = useStorage("web-turtorial-content", "")
export function prev() {
let num = parseInt(step.value) - 1
step.value = num.toString().padStart(2, "0")
}
export function next() {
let num = parseInt(step.value) + 1
step.value = num.toString().padStart(2, "0")
}