refactor: simplify success message handling in dataset update process
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled

This commit is contained in:
wxg0103 2025-08-06 17:25:10 +08:00
parent 9d4679a835
commit 8031b0a2fa

View File

@ -256,9 +256,7 @@ async function submit() {
} else {
if (detail.value.type === '2') {
datasetApi.putLarkDataset(id, obj, loading).then((res) => {
datasetApi.putReEmbeddingDataset(id).then(() => {
MsgSuccess(t('common.saveSuccess'))
})
MsgSuccess(t('common.saveSuccess'))
})
} else {
datasetApi.putDataset(id, obj, loading).then((res) => {