Step F2:项目列表 & 当前项目上下文
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user