diff --git a/yudao-admin-vue3/src/views/subscribe/brand/LitemallBrandForm.vue b/yudao-admin-vue3/src/views/subscribe/brand/LitemallBrandForm.vue index ef937da..ccf3e92 100644 --- a/yudao-admin-vue3/src/views/subscribe/brand/LitemallBrandForm.vue +++ b/yudao-admin-vue3/src/views/subscribe/brand/LitemallBrandForm.vue @@ -117,13 +117,14 @@ const submitForm = async () => { if (formType.value === 'create') { await LitemallBrandApi.createLitemallBrand(data) message.success(t('common.createSuccess')) + } else { await LitemallBrandApi.updateLitemallBrand(data) message.success(t('common.updateSuccess')) } - dialogVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 - emit('success') + emit('success') } finally { formLoading.value = false } diff --git a/yudao-admin-vue3/src/views/subscribe/brand/index.vue b/yudao-admin-vue3/src/views/subscribe/brand/index.vue index 84aaf00..65cdad8 100644 --- a/yudao-admin-vue3/src/views/subscribe/brand/index.vue +++ b/yudao-admin-vue3/src/views/subscribe/brand/index.vue @@ -56,7 +56,7 @@ - +