重新布局,添加教程
This commit is contained in:
11
src/store.ts
11
src/store.ts
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user