disable tutorial management

This commit is contained in:
2025-03-10 19:19:35 +08:00
parent a2d0f42ae6
commit 01e10388e4
4 changed files with 9 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue"
import { authed, roleNormal, roleSuper, user } from "../store/user"
import { loginModal } from "../store/modal"
import { show, step, tutorialSize } from "../store/tutorial"
import { show, tutorialSize } from "../store/tutorial"
import { Account } from "../api"
import { Role } from "../utils/type"
import { router } from "../router"
@@ -68,7 +68,7 @@ function showTutorial() {
function clickMenu(name: string) {
switch (name) {
case "dashboard":
router.push({ name: "tutorial", params: { display: step.value } })
router.push({ name: "user-manage", params: { page: 1 } })
break
case "admin":
window.open(ADMIN_URL)

View File

@@ -34,9 +34,11 @@ import { css, html, js, tab } from "../store/editors"
import { Tutorial } from "../api"
import { step } from "../store/tutorial"
import { authed, roleSuper } from "../store/user"
import { useStorage } from "@vueuse/core"
import { STORAGE_KEY } from "../utils/const"
const displays = ref<number[]>([])
const content = ref("")
const content = useStorage(STORAGE_KEY.CONTENT, "")
const $content = useTemplateRef("$content")
defineEmits(["hide"])