update
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-04-07 19:24:09 -06:00
parent 3697078fc3
commit 58f462bb3b
11 changed files with 146 additions and 118 deletions

View File

@@ -38,7 +38,6 @@ import {
} from "../../store/user"
import { loginModal } from "../../store/modal"
import { show, panelSize } from "../../store/panel"
import { step } from "../../store/tutorial"
import { taskId } from "../../store/task"
import { Account } from "../../api"
import { Role } from "../../utils/type"
@@ -103,18 +102,9 @@ function showTutorial() {
function clickMenu(name: string) {
switch (name) {
case "dashboard": {
if (roleSuper.value) {
router.push({
name: "tutorial-editor",
params: { display: 0 },
})
break
} else if (roleAdmin.value) {
router.push({ name: "challenge-editor", params: { display: 0 } })
break
} else {
break
}
const route = roleAdmin.value ? "challenge-editor" : "tutorial-editor"
router.push({ name: route, query: { display: 0 } })
break
}
case "admin":
window.open(ADMIN_URL)