refactor
This commit is contained in:
parent
f96d50bc07
commit
861d028d09
35 changed files with 50 additions and 50 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue