From ebab96620772ef57ffca37cc59c3a1a76d99ae61 Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Thu, 6 Mar 2025 20:55:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=99=E7=A8=8B=E9=9A=90?=
=?UTF-8?q?=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Corner.vue | 10 ++++++++--
src/components/Login.vue | 1 +
src/components/Tutorial.vue | 24 ++++++++++++++----------
src/pages/Home.vue | 21 +++++++++++++++++++--
src/store/tutorial.ts | 4 ++++
5 files changed, 46 insertions(+), 14 deletions(-)
diff --git a/src/components/Corner.vue b/src/components/Corner.vue
index 6cb8e59..029d297 100644
--- a/src/components/Corner.vue
+++ b/src/components/Corner.vue
@@ -1,5 +1,6 @@
+ 教程
提交
@@ -20,9 +21,9 @@
import { computed, h } from "vue"
import { useMessage } from "naive-ui"
import { Icon } from "@iconify/vue"
-import { user, authed, roleNormal, roleSuper } from "../store/user"
+import { authed, roleNormal, roleSuper, user } from "../store/user"
import { loginModal } from "../store/modal"
-import { step } from "../store/tutorial"
+import { show, step, tutorialSize } from "../store/tutorial"
import { Account } from "../api"
import { Role } from "../utils/type"
import { router } from "../router"
@@ -59,6 +60,11 @@ const menu = computed(() => [
},
])
+function showTutorial() {
+ show.value = true
+ tutorialSize.value = 2 / 5
+}
+
function clickMenu(name: string) {
switch (name) {
case "dashboard":
diff --git a/src/components/Login.vue b/src/components/Login.vue
index 217e369..adcf611 100644
--- a/src/components/Login.vue
+++ b/src/components/Login.vue
@@ -14,6 +14,7 @@
type="password"
v-model:value="password"
name="password"
+ @change="submit"
>
-
- 修改
-
+
+
+ 编辑
+
+ 隐藏
+
diff --git a/src/store/tutorial.ts b/src/store/tutorial.ts
index 690f241..48d6c90 100644
--- a/src/store/tutorial.ts
+++ b/src/store/tutorial.ts
@@ -1,4 +1,8 @@
+import { ref } from "vue"
import { useStorage } from "@vueuse/core"
import { STORAGE_KEY } from "../utils/const"
export const step = useStorage(STORAGE_KEY.STEP, 1)
+
+export const show = ref(true)
+export const tutorialSize = ref(2 / 5)