From ed4fee935daf4af4928d4c6c60d4a52fed31613d Mon Sep 17 00:00:00 2001 From: Sense T Date: Wed, 10 Apr 2024 13:41:32 +0800 Subject: [PATCH] content safety --- web/src/components/records/RecordEditModal.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/components/records/RecordEditModal.vue b/web/src/components/records/RecordEditModal.vue index 20f10ff..f83c65a 100644 --- a/web/src/components/records/RecordEditModal.vue +++ b/web/src/components/records/RecordEditModal.vue @@ -8,7 +8,7 @@ - + @@ -121,6 +121,7 @@ import { type SRVRecord, type TXTRecord, type MXRecord, + type RecordT, } from '@/stores/records'; import { Check, Times } from '@vicons/fa'; import { ref } from 'vue'; @@ -151,6 +152,10 @@ const rules = { } } as FormRules +function clearRecordContent() { + props.record.content = {} as RecordT +} + async function confirm() { loading.value = true; try {