fix: 🐛 修复ts类型警告

This commit is contained in:
ray
2024-10-18 22:55:46 +08:00
parent 8b6ab8883e
commit ec54e8c3b0
3 changed files with 7 additions and 6 deletions

View File

@@ -699,7 +699,10 @@ async function handleOpenDialog(tableName: string) {
currentTableName.value = tableName;
// 获取字典数据
DictAPI.getList().then((data) => {
dictOptions.value = data;
dictOptions.value = data.map((item) => ({
label: item.name,
value: item.dictCode,
}));
loading.value = true;
GeneratorAPI.getGenConfig(tableName)
.then((data) => {