diff --git a/frontend/src/api/modules/message/index.ts b/frontend/src/api/modules/message/index.ts index 56dd7d6d73..b606307398 100644 --- a/frontend/src/api/modules/message/index.ts +++ b/frontend/src/api/modules/message/index.ts @@ -1,5 +1,4 @@ import MSR from '@/api/http/index'; -import * as bugURL from '@/api/requrls/bug-management'; import { CommonList, TableQueryParams } from '@/models/common'; @@ -91,5 +90,5 @@ export function getMessageReadAll(resourceType?: string) { } export function getMessageUnReadCount(projectId: string) { - return MSR.get({ url: '/notification/un-read', params: projectId }); + return MSR.get({ url: '/notification/un-read', params: projectId }, { ignoreCancelToken: true }); } diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue index 7309d4acd2..55edf3fc23 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/basInfo.vue @@ -36,7 +36,7 @@ > {{ t('common.save') }} - {{ t('common.cancel') }} + {{ t('common.cancel') }} @@ -47,6 +47,7 @@ import MsFormCreate from '@/components/pure/ms-form-create/ms-form-create.vue'; import { FormItem, FormRuleItem } from '@/components/pure/ms-form-create/types'; import { MinderJsonNode } from '@/components/pure/ms-minder-editor/props'; + import MsTagsInput from '@/components/pure/ms-tags-input/index.vue'; import { getCaseDefaultFields, updateCaseRequest } from '@/api/modules/case-management/featureCase'; import { useI18n } from '@/hooks/useI18n'; @@ -61,6 +62,9 @@ activeCase: Record; loading: boolean; }>(); + const emit = defineEmits<{ + (e: 'cancel'): void; + }>(); const appStore = useAppStore(); const userStore = useUserStore(); @@ -149,7 +153,7 @@ fileList: [], }); const selectedNode: MinderJsonNode = window.minder.getSelectedNode(); - if (selectedNode.data) { + if (selectedNode?.data) { selectedNode.data.text = baseInfoForm.value.name; } Message.success(t('common.saveSuccess')); @@ -164,6 +168,9 @@ } }); } + function handleCancel() { + emit('cancel'); + } watch( () => props.activeCase.id, diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue index 86209ff53b..a9f5123ea8 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/index.vue @@ -17,7 +17,12 @@ @save="handleMinderSave" >