refactor
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-31 07:41:35 -06:00
parent 91e1b2b48b
commit e539f9450a
10 changed files with 101 additions and 70 deletions

View File

@@ -1,8 +1,9 @@
import { ref } from "vue"
import { TASK_TYPE } from "../utils/const"
const urlParams = new URLSearchParams(window.location.search)
const currentTask = (urlParams.get("task") as TASK_TYPE) ?? TASK_TYPE.Tutorial
const currentTask = window.location.pathname.startsWith("/challenge")
? TASK_TYPE.Challenge
: TASK_TYPE.Tutorial
export const taskTab = ref(currentTask)
export const taskId = ref(0)