Step F2:项目列表 & 当前项目上下文

This commit is contained in:
Cheng Zhou
2025-12-16 20:31:20 +08:00
parent 78d13d077c
commit cc54d80b3a
19 changed files with 239 additions and 24 deletions
+24
View File
@@ -0,0 +1,24 @@
<template>
<div class="study-home" v-if="study.currentStudy">
<el-card>
<h2>项目首页</h2>
<p>项目名称{{ study.currentStudy.name }}</p>
<p>项目编号{{ study.currentStudy.code }}</p>
</el-card>
</div>
<div v-else class="study-home">
<el-alert type="info" title="请先选择一个项目" />
</div>
</template>
<script setup lang="ts">
import { useStudyStore } from "../store/study";
const study = useStudyStore();
</script>
<style scoped>
.study-home {
padding: 16px;
}
</style>