refactor
This commit is contained in:
@ -28,7 +28,7 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
pagination: {
|
||||
endpoint: 'users/clips',
|
||||
endpoint: 'users/clips' as const,
|
||||
limit: 20,
|
||||
params: {
|
||||
userId: this.user.id,
|
||||
|
@ -33,14 +33,14 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
followingPagination: {
|
||||
endpoint: 'users/following',
|
||||
endpoint: 'users/following' as const,
|
||||
limit: 20,
|
||||
params: computed(() => ({
|
||||
userId: this.user.id,
|
||||
})),
|
||||
},
|
||||
followersPagination: {
|
||||
endpoint: 'users/followers',
|
||||
endpoint: 'users/followers' as const,
|
||||
limit: 20,
|
||||
params: computed(() => ({
|
||||
userId: this.user.id,
|
||||
|
@ -29,7 +29,7 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
pagination: {
|
||||
endpoint: 'users/gallery/posts',
|
||||
endpoint: 'users/gallery/posts' as const,
|
||||
limit: 6,
|
||||
params: computed(() => ({
|
||||
userId: this.user.id
|
||||
|
@ -27,7 +27,7 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
pagination: {
|
||||
endpoint: 'users/pages',
|
||||
endpoint: 'users/pages' as const,
|
||||
limit: 20,
|
||||
params: computed(() => ({
|
||||
userId: this.user.id,
|
||||
|
@ -36,7 +36,7 @@ export default defineComponent({
|
||||
data() {
|
||||
return {
|
||||
pagination: {
|
||||
endpoint: 'users/reactions',
|
||||
endpoint: 'users/reactions' as const,
|
||||
limit: 20,
|
||||
params: computed(() => ({
|
||||
userId: this.user.id,
|
||||
|
Reference in New Issue
Block a user