添加了部分接口

This commit is contained in:
2020-10-12 10:50:58 +08:00
parent a7ca08ec34
commit 3f8c8c302b
6 changed files with 113 additions and 1 deletions

View File

@@ -146,6 +146,7 @@
<script lang="ts">
import { defineComponent, ref } from "vue";
import LiveItem from "@/components/LiveItem.vue";
import { getlivelist } from '@/api';
export default defineComponent({
components: {
LiveItem,
@@ -153,6 +154,7 @@ export default defineComponent({
setup() {
const page = ref(6);
const tabindex = ref(1);
getlivelist()
function tabchange(e: number): void {
tabindex.value=e
}

View File

@@ -361,12 +361,14 @@
}
</style>
<script lang="ts">
import { getteacherliked } from '@/api';
import { defineComponent, ref } from "vue";
export default defineComponent({
name: "Subscriber",
components: {},
setup() {
const page = ref(6);
getteacherliked()
return {
page,
};

View File

@@ -156,6 +156,7 @@
<script lang="ts">
import { defineComponent, ref } from "vue";
import VideoItem from "@/components/VideoItem.vue";
import { getvideolist } from '@/api';
export default defineComponent({
components: {
VideoItem,
@@ -163,6 +164,7 @@ export default defineComponent({
setup() {
const page = ref(6);
const tabindex = ref(1);
getvideolist()
function tabchange(e: number): void {
tabindex.value=e
}