feat:增加状态存储

This commit is contained in:
2025-10-13 23:22:15 +08:00
parent 0dc2bbde0c
commit 4b04958a29
4 changed files with 34 additions and 27 deletions

20
src/store/profile.ts Normal file
View File

@@ -0,0 +1,20 @@
import { defineStore } from 'pinia'
export const useProfileStore = defineStore('profile', {
state: () => ({
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: '#' }
]
}
}),
actions: {
}
})