feat:增加状态存储
This commit is contained in:
20
src/store/profile.ts
Normal file
20
src/store/profile.ts
Normal 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: {
|
||||
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user