diff --git a/components/events/new-form.vue b/components/events/new-form.vue index b394666..0cff302 100644 --- a/components/events/new-form.vue +++ b/components/events/new-form.vue @@ -60,13 +60,6 @@ import type { FormItemRule, FormInst } from 'naive-ui'; import { NButton, NForm, NFormItem, NInput } from 'naive-ui'; import { ref, watch } from 'vue'; import { useI18n } from 'vue-i18n'; - -const { t } = useI18n(); -const formRef = ref(null); -import { NButton, NForm, NFormItem, NInput } from 'naive-ui'; -import { ref } from 'vue'; -import { useI18n } from 'vue-i18n'; - const { getEventTargetArnList } = useEventTarget(); const { putBucketNotifications, listBucketNotifications } = useBucket({}); const { t } = useI18n(); @@ -307,8 +300,6 @@ const handleCancel = () => { // 重置表单验证状态 formRef.value?.restoreValidation(); }; - visible.value = false; -}; // 获取arn列表 const arnList = ref>([]); diff --git a/pages/events/index.vue b/pages/events/index.vue index 502e42b..51793d6 100644 --- a/pages/events/index.vue +++ b/pages/events/index.vue @@ -204,9 +204,6 @@ const bucketList = computed(() => { })); }); -const bucketName = ref(bucketList.value.length > 0 ? (bucketList.value[0]?.value ?? '') : ''); - -const pageData = ref([]); const bucketName = ref(bucketList.value.length > 0 ? (bucketList.value[0]?.value ?? '') : ''); const loading = ref(false); const pageData = ref([]); @@ -298,8 +295,6 @@ const newRef = ref(); const handleNew = () => { newRef.value.open(); }; - newRef.value.open(); -}; const refresh = async () => { if (!bucketName.value) {