个人档案修改

This commit is contained in:
asd
2020-10-16 19:12:57 +08:00
parent 9db63a6a1d
commit 41009afeec
6 changed files with 129 additions and 71 deletions

View File

@@ -54,7 +54,7 @@
</div>
</div>
<div class="pages">
<a-pagination v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" />
<a-pagination v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" @change="pagechange"/>
</div>
</div>
</template>
@@ -162,7 +162,7 @@
</style>
<script lang="ts">
import { getteacherliked } from '@/api';
import { defineComponent, onMounted, ref } from "vue";
import { defineComponent, onMounted, ref, toRaw } from "vue";
export default defineComponent({
name: "Subscriber",
components: {},
@@ -181,6 +181,9 @@ export default defineComponent({
async function search(e:any){
teacherlikedlist.value=await getteacherliked(e)
}
async function pagechange(){
teacherlikedlist.value=await getteacherliked(toRaw(condition.value))
}
return {
page,