wip
This commit is contained in:
parent
0edc80b10a
commit
91cc7af40a
1 changed files with 9 additions and 7 deletions
|
@ -41,7 +41,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { markRaw, onMounted, onUnmounted, watch } from 'vue';
|
import { markRaw, onMounted, onUnmounted, watch, computed } from 'vue';
|
||||||
import * as Acct from 'calckey-js/built/acct';
|
import * as Acct from 'calckey-js/built/acct';
|
||||||
import { Virtual } from 'swiper';
|
import { Virtual } from 'swiper';
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||||
|
@ -93,17 +93,19 @@ definePageMetadata({
|
||||||
|
|
||||||
const dmsPagination = {
|
const dmsPagination = {
|
||||||
endpoint: 'messaging/history' as const,
|
endpoint: 'messaging/history' as const,
|
||||||
limit: 99,
|
limit: 20,
|
||||||
params: {
|
params: computed(() => ({
|
||||||
group: false,
|
group: false,
|
||||||
},
|
})),
|
||||||
|
offsetMode: true,
|
||||||
};
|
};
|
||||||
const groupsPagination = {
|
const groupsPagination = {
|
||||||
endpoint: 'messaging/history' as const,
|
endpoint: 'messaging/history' as const,
|
||||||
limit: 30,
|
limit: 10,
|
||||||
params: {
|
params: computed(() => ({
|
||||||
group: true,
|
group: true,
|
||||||
},
|
})),
|
||||||
|
offsetMode: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
function onMessage(message): void {
|
function onMessage(message): void {
|
||||||
|
|
Loading…
Reference in a new issue