improve first screen loading speed

This commit is contained in:
pa
2025-09-24 15:43:24 +09:00
committed by Natsumi
parent b618b7dba5
commit 968abf26fa
2 changed files with 17 additions and 13 deletions

View File

@@ -259,7 +259,7 @@
import { ElMessageBox } from 'element-plus';
import { Loading, Refresh, Close, RefreshLeft } from '@element-plus/icons-vue';
import { storeToRefs } from 'pinia';
import { nextTick, reactive, ref, watch } from 'vue';
import { nextTick, onMounted, reactive, ref, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { friendRequest, userRequest } from '../../api';
import removeConfusables, { removeWhitespace } from '../../service/confusables';
@@ -313,6 +313,10 @@
if (val === 'friendList') nextTick(friendsListSearchChange);
});
onMounted(() => {
friendsListSearchChange();
});
function friendsListSearchChange() {
friendsListLoading.value = true;
let query = '';