This commit is contained in:
luyuan 2020-10-16 14:52:21 +08:00
parent 1a9dd0ba50
commit b9f4d755a0
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 6 additions and 4 deletions

View File

@ -101,7 +101,7 @@ interface Teacherliked {
export async function getteacherliked(data?:any){ export async function getteacherliked(data?:any){
const res = await get<Array<Teacherliked>>('teacherliked',data); const res = await get<Array<Teacherliked>>('teacherliked',data);
// console.log(res) // console.log(res)
return res.data return res;
} }

View File

@ -10,7 +10,7 @@
<div class="mid"> <div class="mid">
<!-- {{teacherlikedlist}} --> <!-- {{teacherlikedlist}} -->
<div class="studentlist"> <div class="studentlist">
<div class="stuitem" v-for="(i,j) in teacherlikedlist" :key="j"> <div class="stuitem" v-for="(i,j) in teacherlikedlist.data" :key="j">
<img :src="i.img" alt="" class="photo" /> <img :src="i.img" alt="" class="photo" />
<div> <div>
<div class="info"> <div class="info">
@ -54,7 +54,7 @@
</div> </div>
</div> </div>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="500" :showLessItems="true" /> <a-pagination v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" />
</div> </div>
</div> </div>
</template> </template>
@ -168,7 +168,9 @@ export default defineComponent({
components: {}, components: {},
setup() { setup() {
const page = ref(1); const page = ref(1);
const teacherlikedlist =ref<Array<any>>([]); const teacherlikedlist =ref<any>({
});
const title=ref('') const title=ref('')
const condition = ref<any>({ const condition = ref<any>({
title:"" title:""