优化代码结构

This commit is contained in:
WUSIJIAN
2025-12-05 15:45:14 +08:00
parent e41884fc60
commit 134ea96340
14 changed files with 67 additions and 75 deletions

View File

@@ -92,7 +92,7 @@ import { saveAs } from 'file-saver';
import { importProduct } from '/@/api/customerService/product';
const emit = defineEmits<{
(e: 'getRoleList'): void;
(e: 'refresh'): void;
}>();
// 响应式状态
@@ -279,8 +279,7 @@ const handleCustomUpload = async (file: File) => {
};
ElMessage.success(`导入完成!失败记录:${resultData.failCount || 0}`);
emit('getRoleList');
emit('refresh');
setTimeout(() => {
if (isShowDialog.value) {
isShowDialog.value = false;