修复错误

master
落雨楓 1 week ago
parent b067cb917b
commit 3fc0b16434

@ -96,7 +96,7 @@ module.exports = {
}); });
}).catch((err) => { }).catch((err) => {
contentLoading.value = false; contentLoading.value = false;
errorMessage.value = mw.msg('isekai-preview-page-list-load-error', selectedPageInfo.value.title); errorMessage.value = mw.msg('isekai-preview-page-list-load-error', err.message);
console.error(err); console.error(err);
}); });
} }

@ -59,7 +59,7 @@ class BasePageListLoader {
}).catch((error) => { }).catch((error) => {
if (error instanceof TypeError) { if (error instanceof TypeError) {
error = new Error(mw.message('isekai-preview-page-list-load-error-parse').parse()); error = new Error(mw.message('isekai-preview-page-list-load-error-parse').parse());
} else if (error instanceof FetchError) }
reject(error); reject(error);
}); });
}); });

Loading…
Cancel
Save