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)