From 8a38eaa7d6bf3a670f45b94d4b593394c21d89fc Mon Sep 17 00:00:00 2001 From: yxh Date: Wed, 11 Jun 2025 09:34:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dict/index.vue | 2 +- src/views/system/tools/gen/index.vue | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index a9a9069..7375411 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -32,7 +32,7 @@ - + import {toRefs, reactive, onMounted, ref, defineComponent} from 'vue'; -import {ElMessageBox, ElMessage, FormInstance} from 'element-plus'; +import {ElMessageBox, ElMessage, FormInstance,ElLoading } from 'element-plus'; import {getTableList, deleteTables, batchGenCode, syncTable} from "/@/api/system/tools/gen"; import {TableData,TableDataState} from "/@/views/system/tools/gen/component/model" import importTable from "/@/views/system/tools/gen/component/importTable.vue"; @@ -220,11 +220,14 @@ const handleGenTable=(row: TableData|null)=>{ type: 'warning', }) .then(() => { + const loading = ElLoading.service({text:'生成中...'}) batchGenCode(ids).then(()=>{ ElMessage.success('生成成功'); resetMenuSession() tableList(); - }) + }).finally(() => { + loading.close() + }) }) .catch(() => {}); }