mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: simplify success message handling in dataset update process
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
This commit is contained in:
parent
9d4679a835
commit
8031b0a2fa
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue