Merge branch 'dev' of https://gitee.com/justop/hxops into hugo2

This commit is contained in:
hugo committed 2026-06-02 10:15:49 +08:00
commit 6253476930
1 file changed
+2 -1
+2 -1
View File
@@ -1577,11 +1577,12 @@ const syncLeaveDuration = (form: LeaveRequestFormData) => {
}
};
const getLeaveIntentNormalized = (content: string) => (content || '').replace(/\s+/g, '');
const isStrongLeaveIntent = (content: string) => {
const normalized = getLeaveIntentNormalized(content);
const weakConsultationIntent = /(请假流程|请假怎么走|请假步骤|请假如何申请|请假如何走流程|请假怎么办|请假需要什么|请假规定)/;
const weakConsultationIntent = /(请假流程|请假怎么走|请假步骤|请假如何申请|请假如何走流程|请假怎么办|请假需要什么|请假规定|请假管理办法|请假制度)/;
const materialConsultationIntent = /(提交哪些|提交什么|需要哪些|需要什么|要提交哪些|要提交什么|哪些资料|哪些材料|什么资料|什么材料|申请材料|所需资料|所需材料)/;
if (weakConsultationIntent.test(normalized)) return false;
if (materialConsultationIntent.test(normalized)) return false;