diff --git a/packages/components/src/components/dialog/Dialog.story.vue b/packages/components/src/components/dialog/Dialog.story.vue index c1554f1f..39b7b1c8 100644 --- a/packages/components/src/components/dialog/Dialog.story.vue +++ b/packages/components/src/components/dialog/Dialog.story.vue @@ -27,7 +27,6 @@ function handleConfirm() { onConfirm: async () => { await new Promise((resolve) => setTimeout(() => { - console.log("Timeout"); resolve(""); }, 1000) ); diff --git a/src/components/form/AnnotationsForm.vue b/src/components/form/AnnotationsForm.vue index 5547fe01..c7a6d7a1 100644 --- a/src/components/form/AnnotationsForm.vue +++ b/src/components/form/AnnotationsForm.vue @@ -58,7 +58,7 @@ const handleFetchAnnotationSettings = async () => { ); annotationSettings.value = data.items; } catch (error) { - console.log("Failed to fetch annotation settings", error); + console.error("Failed to fetch annotation settings", error); } }; diff --git a/src/modules/contents/attachments/composables/use-attachment.ts b/src/modules/contents/attachments/composables/use-attachment.ts index 56836757..8bc2ea47 100644 --- a/src/modules/contents/attachments/composables/use-attachment.ts +++ b/src/modules/contents/attachments/composables/use-attachment.ts @@ -337,7 +337,6 @@ export function useAttachmentSelect( } }) .filter(Boolean) as Content[]; - console.log(contents); editor.value ?.chain() .focus() diff --git a/src/modules/contents/comments/CommentList.vue b/src/modules/contents/comments/CommentList.vue index 7d66ab83..b162c25a 100644 --- a/src/modules/contents/comments/CommentList.vue +++ b/src/modules/contents/comments/CommentList.vue @@ -80,7 +80,7 @@ const handleFetchComments = async (options?: { }, 3000); } } catch (error) { - console.log("Failed to fetch comments", error); + console.error("Failed to fetch comments", error); } finally { loading.value = false; } diff --git a/src/modules/contents/comments/components/CommentListItem.vue b/src/modules/contents/comments/components/CommentListItem.vue index fa0d750f..3642ee94 100644 --- a/src/modules/contents/comments/components/CommentListItem.vue +++ b/src/modules/contents/comments/components/CommentListItem.vue @@ -69,7 +69,7 @@ const handleDelete = async () => { Toast.success("删除成功"); } catch (error) { - console.log("Failed to delete comment", error); + console.error("Failed to delete comment", error); } finally { emit("reload"); } diff --git a/src/modules/contents/comments/components/ReplyListItem.vue b/src/modules/contents/comments/components/ReplyListItem.vue index d6670158..2a34255e 100644 --- a/src/modules/contents/comments/components/ReplyListItem.vue +++ b/src/modules/contents/comments/components/ReplyListItem.vue @@ -57,7 +57,7 @@ const handleDelete = async () => { Toast.success("删除成功"); } catch (error) { - console.log("Failed to delete comment reply", error); + console.error("Failed to delete comment reply", error); } finally { emit("reload"); } diff --git a/src/modules/contents/posts/categories/CategoryList.vue b/src/modules/contents/posts/categories/CategoryList.vue index 25a8848a..b4b79801 100644 --- a/src/modules/contents/posts/categories/CategoryList.vue +++ b/src/modules/contents/posts/categories/CategoryList.vue @@ -57,7 +57,7 @@ const handleUpdateInBatch = useDebounceFn(async () => { ); await Promise.all(promises); } catch (e) { - console.log("Failed to update categories", e); + console.error("Failed to update categories", e); } finally { await handleFetchCategories(); } diff --git a/src/modules/contents/posts/components/PostSettingModal.vue b/src/modules/contents/posts/components/PostSettingModal.vue index 5069b78d..8affc3ea 100644 --- a/src/modules/contents/posts/components/PostSettingModal.vue +++ b/src/modules/contents/posts/components/PostSettingModal.vue @@ -218,7 +218,6 @@ const { templates } = useThemeCustomTemplates("post"); const publishTime = computed(() => { const { publishTime } = formState.value.spec; if (publishTime) { - console.log(toDatetimeLocal(publishTime)); return toDatetimeLocal(publishTime); } return ""; diff --git a/src/modules/interface/menus/Menus.vue b/src/modules/interface/menus/Menus.vue index 5f47ee71..216457a1 100644 --- a/src/modules/interface/menus/Menus.vue +++ b/src/modules/interface/menus/Menus.vue @@ -145,7 +145,7 @@ const handleUpdateInBatch = useDebounceFn(async () => { ); await Promise.all(promises); } catch (e) { - console.log("Failed to update menu items", e); + console.error("Failed to update menu items", e); } finally { await menuListRef.value.handleFetchMenus(); await handleFetchMenuItems({ mute: true }); diff --git a/src/modules/system/users/components/GrantPermissionModal.vue b/src/modules/system/users/components/GrantPermissionModal.vue index aff5138f..1ffbd2b5 100644 --- a/src/modules/system/users/components/GrantPermissionModal.vue +++ b/src/modules/system/users/components/GrantPermissionModal.vue @@ -56,7 +56,7 @@ const handleGrantPermission = async () => { }); onVisibleChange(false); } catch (error) { - console.log("Failed to grant permission to user", error); + console.error("Failed to grant permission to user", error); } finally { saving.value = false; }