跳转到首页

This commit is contained in:
2025-04-28 09:28:41 +08:00
parent 69c3a36957
commit 4beab17b70
7 changed files with 52 additions and 50 deletions

View File

@@ -2,7 +2,7 @@ import { ref } from "vue"
import { TASK_TYPE } from "../utils/const"
const urlParams = new URLSearchParams(window.location.search)
const currentTask = urlParams.get("task") ?? TASK_TYPE.Tutorial
const currentTask = (urlParams.get("task") as TASK_TYPE) ?? TASK_TYPE.Tutorial
export const taskTab = ref(currentTask)
export const taskId = ref(0)