后台教程

This commit is contained in:
2025-03-05 14:31:22 +08:00
parent d2d4c2974e
commit 24880e62ad
9 changed files with 48 additions and 19 deletions

View File

@@ -22,6 +22,7 @@ import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue"
import { user, authed, roleNormal, roleSuper } from "../store/user"
import { loginModal } from "../store/modal"
import { step } from "../store/tutorial"
import { Account } from "../api"
import { Role } from "../utils/type"
import { router } from "../router"
@@ -61,7 +62,7 @@ const menu = computed(() => [
function clickMenu(name: string) {
switch (name) {
case "dashboard":
router.push({ name: "tutorial" })
router.push({ name: "tutorial", params: { display: step.value } })
break
case "admin":
window.open(ADMIN_URL)