From 4b04958a2949f0d2359375a7dd965cda2a3ee208 Mon Sep 17 00:00:00 2001
From: Cxx0822 <1556464090@qq.com>
Date: Mon, 13 Oct 2025 23:22:15 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E5=AD=98=E5=82=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 22 ++++++----------------
src/components/HeroSection.vue | 17 ++++++-----------
src/main.ts | 2 ++
src/store/profile.ts | 20 ++++++++++++++++++++
4 files changed, 34 insertions(+), 27 deletions(-)
create mode 100644 src/store/profile.ts
diff --git a/src/App.vue b/src/App.vue
index 5e59f7c..acbdd5b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,7 +8,6 @@
@@ -33,13 +32,13 @@
@@ -54,6 +53,10 @@ import EducationSection from './components/EducationSection.vue'
import ContactSection from './components/ContactSection.vue'
import Footer from './components/Footer.vue'
+import { useProfileStore } from '@/store/profile.js'
+
+const profileStore = useProfileStore()
+
// 滚动位置
const scrollPosition = ref(0)
@@ -78,19 +81,6 @@ const scrollToSection = (sectionId) => {
}
}
-// 个人信息数据
-const personalInfo = {
- name: '陈修翔',
- title: '全栈工程师',
- description: '拥有5年前端开发经验,专注于构建响应式、高性能的现代Web应用,精通JavaScript、React和Vue等前端技术栈。',
- socials: [
- { name: 'GitHub', icon: 'fa-brands fa-github', url: '#' },
- { name: 'LinkedIn', icon: 'fa-brands fa-linkedin', url: '#' },
- { name: 'Twitter', icon: 'fa-brands fa-twitter', url: '#' },
- { name: 'Email', icon: 'fa-solid fa-envelope', url: '#' }
- ]
-}
-
// 技能数据
const skills = [
{
diff --git a/src/components/HeroSection.vue b/src/components/HeroSection.vue
index f713995..78074f8 100644
--- a/src/components/HeroSection.vue
+++ b/src/components/HeroSection.vue
@@ -10,14 +10,15 @@
- {{ personalInfo.name }} / {{ personalInfo.title }}
+ {{ profileStore.personalInfo.name }}
+ / {{ profileStore.personalInfo.title }}
-
{{ personalInfo.description }}
+
{{ profileStore.personalInfo.description }}