提交 3c10b5c7 authored 作者: lhh's avatar lhh

update

上级 0555bcbc
<script setup lang="ts"> <script setup lang="ts">
import CourseListSearch from '../components/CourseListSearch.vue' import CourseListSearch from '../components/CourseListSearch.vue'
import CourseListItem from '../components/CourseListItem.vue' import CourseListItem from '../components/CourseListItem.vue'
import CourseView from './CourseView.vue'
import type { CourseListParamsType, CourseListItemType } from '../types' import type { CourseListParamsType, CourseListItemType } from '../types'
import { getCourseList } from '../api' import { getCourseList } from '../api'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
...@@ -47,13 +48,16 @@ log.upload({ ...@@ -47,13 +48,16 @@ log.upload({
<template> <template>
<section class="course" :class="route.path === '/course' ? 'is-list' : 'is-view'"> <section class="course" :class="route.path === '/course' ? 'is-list' : 'is-view'">
<div class="course-left"> <!-- <div class="course-left">
<CourseListSearch @change="handleSearch"></CourseListSearch> <CourseListSearch @change="handleSearch"></CourseListSearch>
<div class="course-list"> <div class="course-list">
<CourseListItem v-for="item in courseList" :data="item" :key="item.id" @change="fetchList"></CourseListItem> <CourseListItem v-for="item in courseList" :data="item" :key="item.id" @change="fetchList"></CourseListItem>
</div> </div>
</div> -->
<!-- <div class="course-right"><router-view :key="$route.fullPath"></router-view></div> -->
<div class="course-right">
<CourseView v-for="item in courseList" :data="item" :key="item.id"></CourseView>
</div> </div>
<div class="course-right"><router-view :key="$route.fullPath"></router-view></div>
</section> </section>
</template> </template>
...@@ -76,8 +80,11 @@ log.upload({ ...@@ -76,8 +80,11 @@ log.upload({
// 右侧 // 右侧
.course-right { .course-right {
flex: 1; flex: 1;
overflow: hidden; // overflow: hidden;
margin-left: 20px; // background-color: #fff;
// margin-left: 20px;
border-radius: 10px;
height: fit-content;
} }
.is-h5 { .is-h5 {
.course-left { .course-left {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论