diff --git a/Build_God_Game/src/assets/icons/equipment/登龙剑.svg b/Build_God_Game/src/assets/icons/equipment/登龙剑.svg
new file mode 100644
index 0000000..205feb1
--- /dev/null
+++ b/Build_God_Game/src/assets/icons/equipment/登龙剑.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Build_God_Game/src/assets/icons/pill/渡厄丹.svg b/Build_God_Game/src/assets/icons/pill/渡厄丹.svg
new file mode 100644
index 0000000..743b627
--- /dev/null
+++ b/Build_God_Game/src/assets/icons/pill/渡厄丹.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Build_God_Game/src/assets/images/bag.svg b/Build_God_Game/src/assets/images/bag.svg
index 564b198..24ca49d 100644
--- a/Build_God_Game/src/assets/images/bag.svg
+++ b/Build_God_Game/src/assets/images/bag.svg
@@ -1,5 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Build_God_Game/src/router/index.ts b/Build_God_Game/src/router/index.ts
index 4561829..580690c 100644
--- a/Build_God_Game/src/router/index.ts
+++ b/Build_God_Game/src/router/index.ts
@@ -33,6 +33,12 @@ const router = createRouter({
component: () => import('@/views/GameView.vue'),
meta: { requiresAuth: true }
},
+ {
+ path: '/tutorial',
+ name: 'tutorial',
+ component: () => import('@/views/TutorialView.vue'),
+ meta: { requiresAuth: true }
+ },
{
path: '/training',
name: 'training',
diff --git a/Build_God_Game/src/views/CharacterView.vue b/Build_God_Game/src/views/CharacterView.vue
index dacf545..398f20f 100644
--- a/Build_God_Game/src/views/CharacterView.vue
+++ b/Build_God_Game/src/views/CharacterView.vue
@@ -74,6 +74,9 @@ const handleCreateCharacter = async () => {
newCharacterName.value = ''
newCharacterProfessionId.value = null
showProfessionSelection.value = false
+ if (!localStorage.getItem('has_seen_tutorial')) {
+ router.push('/tutorial')
+ }
} else {
errorMsg.value = '创建失败,可能名称已存在或已达角色数量上限(3个)'
}
diff --git a/Build_God_Game/src/views/GameView.vue b/Build_God_Game/src/views/GameView.vue
index 6e9375d..e0a9830 100644
--- a/Build_God_Game/src/views/GameView.vue
+++ b/Build_God_Game/src/views/GameView.vue
@@ -61,6 +61,10 @@ const handleSwitchCharacter = () => {
window.location.href = '/character'
}
+const navigateToTutorial = () => {
+ router.push('/tutorial')
+}
+
const navigateTo = (item: { label: string }) => {
if (item.label === '打坐' || item.label === '打坐中') {
router.push('/training')
@@ -103,6 +107,9 @@ const handleBreakthrough = async () => {