refactor: move task components to components/task/

This commit is contained in:
xuyue committed 2026-04-01 03:55:01 -06:00
1 parent e4359e8093
commit 6fb3bc0198
8 files changed
+38 -37

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@ export function goHome(router: any, type: TASK_TYPE, display: number) {
if (type === TASK_TYPE.Tutorial) {
router.push({ name: "home-tutorial", params: { display } })
} else if (type === TASK_TYPE.Challenge) {
router.push({ name: "home-challenge", params: { display } })
if (display) router.push({ name: "home-challenge", params: { display } })
else router.push({ name: "home-challenge-list" })
} else {
router.push({ name: "home" })
}