mirror of https://github.com/halo-dev/halo-admin
chore: adjust the log level and delete useless logs (#860)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 调整部分日志级别,以及删除部分无用的日志。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/841/head^2
parent
b949a25558
commit
fad0dcc3ba
|
@ -27,7 +27,6 @@ function handleConfirm() {
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
await new Promise((resolve) =>
|
await new Promise((resolve) =>
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("Timeout");
|
|
||||||
resolve("");
|
resolve("");
|
||||||
}, 1000)
|
}, 1000)
|
||||||
);
|
);
|
||||||
|
|
|
@ -58,7 +58,7 @@ const handleFetchAnnotationSettings = async () => {
|
||||||
);
|
);
|
||||||
annotationSettings.value = data.items;
|
annotationSettings.value = data.items;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Failed to fetch annotation settings", error);
|
console.error("Failed to fetch annotation settings", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -337,7 +337,6 @@ export function useAttachmentSelect(
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.filter(Boolean) as Content[];
|
.filter(Boolean) as Content[];
|
||||||
console.log(contents);
|
|
||||||
editor.value
|
editor.value
|
||||||
?.chain()
|
?.chain()
|
||||||
.focus()
|
.focus()
|
||||||
|
|
|
@ -80,7 +80,7 @@ const handleFetchComments = async (options?: {
|
||||||
}, 3000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Failed to fetch comments", error);
|
console.error("Failed to fetch comments", error);
|
||||||
} finally {
|
} finally {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ const handleDelete = async () => {
|
||||||
|
|
||||||
Toast.success("删除成功");
|
Toast.success("删除成功");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Failed to delete comment", error);
|
console.error("Failed to delete comment", error);
|
||||||
} finally {
|
} finally {
|
||||||
emit("reload");
|
emit("reload");
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ const handleDelete = async () => {
|
||||||
|
|
||||||
Toast.success("删除成功");
|
Toast.success("删除成功");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Failed to delete comment reply", error);
|
console.error("Failed to delete comment reply", error);
|
||||||
} finally {
|
} finally {
|
||||||
emit("reload");
|
emit("reload");
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ const handleUpdateInBatch = useDebounceFn(async () => {
|
||||||
);
|
);
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Failed to update categories", e);
|
console.error("Failed to update categories", e);
|
||||||
} finally {
|
} finally {
|
||||||
await handleFetchCategories();
|
await handleFetchCategories();
|
||||||
}
|
}
|
||||||
|
|
|
@ -218,7 +218,6 @@ const { templates } = useThemeCustomTemplates("post");
|
||||||
const publishTime = computed(() => {
|
const publishTime = computed(() => {
|
||||||
const { publishTime } = formState.value.spec;
|
const { publishTime } = formState.value.spec;
|
||||||
if (publishTime) {
|
if (publishTime) {
|
||||||
console.log(toDatetimeLocal(publishTime));
|
|
||||||
return toDatetimeLocal(publishTime);
|
return toDatetimeLocal(publishTime);
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
|
@ -145,7 +145,7 @@ const handleUpdateInBatch = useDebounceFn(async () => {
|
||||||
);
|
);
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Failed to update menu items", e);
|
console.error("Failed to update menu items", e);
|
||||||
} finally {
|
} finally {
|
||||||
await menuListRef.value.handleFetchMenus();
|
await menuListRef.value.handleFetchMenus();
|
||||||
await handleFetchMenuItems({ mute: true });
|
await handleFetchMenuItems({ mute: true });
|
||||||
|
|
|
@ -56,7 +56,7 @@ const handleGrantPermission = async () => {
|
||||||
});
|
});
|
||||||
onVisibleChange(false);
|
onVisibleChange(false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Failed to grant permission to user", error);
|
console.error("Failed to grant permission to user", error);
|
||||||
} finally {
|
} finally {
|
||||||
saving.value = false;
|
saving.value = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue