fix:修改路由以及用户信息的问题; #73

Merged
yangws merged 1 commits from yangws into main 2024-07-26 15:36:22 +08:00
4 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,6 @@
import {listClassmain, listClassuser, addClassgroup, listClassgroup, delClassgroup,getClassgroup,updateClassgroup} from '@/api/classManage/index'
import {ref, onMounted, reactive, defineProps, watch} from 'vue'
import useUserStore from '@/store/modules/user'
import {useRoute} from 'vue-router'
import {ElMessage} from "element-plus";
const userStore = useUserStore().user

View File

@ -9,9 +9,10 @@
<el-descriptions :column="1">
<el-descriptions-item label="班级名称">{{ classInfo.className }}</el-descriptions-item>
<el-descriptions-item label="教师">
<template>
<template v-if="classInfo.teacher.length > 0">
<el-tag type="primary" v-for="(item, index) in classInfo.teacher" :key="index">{{item.name}}</el-tag>
</template>
<template v-else>暂无</template>
</el-descriptions-item>
<el-descriptions-item label="学生人数">{{ classInfo.student.length }}</el-descriptions-item>
</el-descriptions>

View File

@ -110,7 +110,7 @@
//
const courseList = ref([])
//id
const classId = ref('')
const classId = ref(0)
//
const currentIndex = ref(0)
//
@ -265,7 +265,6 @@
onMounted(() => {
getClassInfo()
nextTick(() => {
console.log(userStore.deptId,'123')
viewportHeight.value = getViewportHeight()
})
window.addEventListener('resize', () => {

View File

@ -20,6 +20,7 @@
/>
</div>
<div>{{ item.name }}</div>
<div>{{ item.username }}</div>
</div>
</template>
<template v-else>