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 }}