fix(front):do not use "usePage" in homepage
This commit is contained in:
parent
cbaa823bad
commit
b09ba1c366
|
@ -6,7 +6,6 @@ import { useStore } from '~/store'
|
||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import usePage from '~/composables/navigation/usePage'
|
|
||||||
import useErrorHandler from '~/composables/useErrorHandler'
|
import useErrorHandler from '~/composables/useErrorHandler'
|
||||||
|
|
||||||
import AlbumCard from '~/components/album/Card.vue'
|
import AlbumCard from '~/components/album/Card.vue'
|
||||||
|
@ -34,7 +33,7 @@ const store = useStore()
|
||||||
const query = ref('')
|
const query = ref('')
|
||||||
const albums = reactive([] as Album[])
|
const albums = reactive([] as Album[])
|
||||||
const count = ref(0)
|
const count = ref(0)
|
||||||
const page = usePage()
|
const page = ref(1)
|
||||||
const nextPage = ref()
|
const nextPage = ref()
|
||||||
|
|
||||||
const isLoading = ref(false)
|
const isLoading = ref(false)
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { useStore } from '~/store'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import useErrorHandler from '~/composables/useErrorHandler'
|
import useErrorHandler from '~/composables/useErrorHandler'
|
||||||
import usePage from '~/composables/navigation/usePage'
|
|
||||||
|
|
||||||
import ArtistCard from '~/components/artist/Card.vue'
|
import ArtistCard from '~/components/artist/Card.vue'
|
||||||
import Section from '~/components/ui/Section.vue'
|
import Section from '~/components/ui/Section.vue'
|
||||||
|
@ -34,7 +33,7 @@ const store = useStore()
|
||||||
const query = ref('')
|
const query = ref('')
|
||||||
const artists = reactive([] as Artist[])
|
const artists = reactive([] as Artist[])
|
||||||
const count = ref(0)
|
const count = ref(0)
|
||||||
const page = usePage()
|
const page = ref(1)
|
||||||
const nextPage = ref()
|
const nextPage = ref()
|
||||||
|
|
||||||
const isLoading = ref(false)
|
const isLoading = ref(false)
|
||||||
|
|
|
@ -7,8 +7,6 @@ import { clone } from 'lodash-es'
|
||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import usePage from '~/composables/navigation/usePage'
|
|
||||||
|
|
||||||
import ChannelCard from '~/components/audio/ChannelCard.vue'
|
import ChannelCard from '~/components/audio/ChannelCard.vue'
|
||||||
import Loader from '~/components/ui/Loader.vue'
|
import Loader from '~/components/ui/Loader.vue'
|
||||||
import Section from '~/components/ui/Section.vue'
|
import Section from '~/components/ui/Section.vue'
|
||||||
|
@ -33,7 +31,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||||
const result = ref<PaginatedChannelList>()
|
const result = ref<PaginatedChannelList>()
|
||||||
const errors = ref([] as string[])
|
const errors = ref([] as string[])
|
||||||
const nextPage = ref()
|
const nextPage = ref()
|
||||||
const page = usePage()
|
const page = ref(1)
|
||||||
const count = ref(0)
|
const count = ref(0)
|
||||||
|
|
||||||
const isLoading = ref(false)
|
const isLoading = ref(false)
|
||||||
|
|
|
@ -8,7 +8,6 @@ import { useI18n } from 'vue-i18n'
|
||||||
import { getArtistCoverUrl } from '~/utils/utils'
|
import { getArtistCoverUrl } from '~/utils/utils'
|
||||||
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import usePage from '~/composables/navigation/usePage'
|
|
||||||
import useWebSocketHandler from '~/composables/useWebSocketHandler'
|
import useWebSocketHandler from '~/composables/useWebSocketHandler'
|
||||||
|
|
||||||
import PlayButton from '~/components/audio/PlayButton.vue'
|
import PlayButton from '~/components/audio/PlayButton.vue'
|
||||||
|
@ -50,7 +49,7 @@ const { t } = useI18n()
|
||||||
|
|
||||||
const objects = reactive([] as Listening[])
|
const objects = reactive([] as Listening[])
|
||||||
const count = ref(0)
|
const count = ref(0)
|
||||||
const page = usePage()
|
const page = ref(1)
|
||||||
|
|
||||||
const isLoading = ref(false)
|
const isLoading = ref(false)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import { useI18n } from 'vue-i18n'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
|
||||||
import useErrorHandler from '~/composables/useErrorHandler'
|
import useErrorHandler from '~/composables/useErrorHandler'
|
||||||
import usePage from '~/composables/navigation/usePage'
|
|
||||||
|
|
||||||
import PlaylistCard from '~/components/playlists/Card.vue'
|
import PlaylistCard from '~/components/playlists/Card.vue'
|
||||||
import Button from '~/components/ui/Button.vue'
|
import Button from '~/components/ui/Button.vue'
|
||||||
|
@ -31,7 +30,7 @@ const props = defineProps<Props>()
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
|
||||||
const objects = reactive([] as Playlist[])
|
const objects = reactive([] as Playlist[])
|
||||||
const page = usePage()
|
const page = ref(1)
|
||||||
const nextPage = ref('')
|
const nextPage = ref('')
|
||||||
const count = ref(0)
|
const count = ref(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue