fix uncaught errors

This commit is contained in:
pa
2025-07-14 21:25:58 +09:00
committed by Natsumi
parent ee37517b2d
commit f53eed46cd
2 changed files with 56 additions and 11 deletions
+12
View File
@@ -258,6 +258,9 @@ export const useGalleryStore = defineStore('Gallery', () => {
vrcPlusIconRequest
.getFileList(params)
.then((args) => handleFilesList(args))
.catch((error) => {
console.error('Error fetching gallery files:', error);
})
.finally(() => {
state.galleryDialogGalleryLoading = false;
});
@@ -272,6 +275,9 @@ export const useGalleryStore = defineStore('Gallery', () => {
vrcPlusIconRequest
.getFileList(params)
.then((args) => handleFilesList(args))
.catch((error) => {
console.error('Error fetching VRC Plus icons:', error);
})
.finally(() => {
state.galleryDialogIconsLoading = false;
});
@@ -323,6 +329,9 @@ export const useGalleryStore = defineStore('Gallery', () => {
vrcPlusIconRequest
.getFileList(params)
.then((args) => handleFilesList(args))
.catch((error) => {
console.error('Error fetching stickers:', error);
})
.finally(() => {
state.galleryDialogStickersLoading = false;
});
@@ -466,6 +475,9 @@ export const useGalleryStore = defineStore('Gallery', () => {
vrcPlusIconRequest
.getFileList(params)
.then((args) => handleFilesList(args))
.catch((error) => {
console.error('Error fetching emojis:', error);
})
.finally(() => {
state.galleryDialogEmojisLoading = false;
});