feat:重构模块架构
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="skills-grid">
|
||||
<div
|
||||
v-for="(skill, index) in skills"
|
||||
v-for="(skill, index) in profileStore.skills"
|
||||
:key="index"
|
||||
class="skill-card animate-item"
|
||||
:data-delay="index * 150"
|
||||
@@ -36,13 +36,11 @@
|
||||
|
||||
<script setup>
|
||||
import { defineProps, onMounted } from 'vue'
|
||||
import { useProfileStore } from '@/store/profile.ts'
|
||||
|
||||
const profileStore = useProfileStore()
|
||||
|
||||
// 接收技能数据和sectionId
|
||||
const props = defineProps({
|
||||
skills: {
|
||||
type: Array,
|
||||
required: true
|
||||
},
|
||||
sectionId: {
|
||||
type: String,
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user