style: clean up whitespace and formatting in KnowledgeSetting.vue

This commit is contained in:
wxg0103 2025-08-05 18:11:40 +08:00
parent 8222cf42fa
commit 901b88887d

View File

@ -169,7 +169,8 @@
type="primary" type="primary"
v-if="!route.path.includes('share/') && permissionPrecise.edit(id)" v-if="!route.path.includes('share/') && permissionPrecise.edit(id)"
> >
{{ $t('common.save') }}</el-button {{ $t('common.save') }}
</el-button
> >
</div> </div>
</div> </div>
@ -303,18 +304,15 @@ async function submit() {
}) })
} }
}) })
.catch(() => {}) .catch(() => {
})
} else { } else {
if (detail.value.type === 2) { if (detail.value.type === 2) {
loadSharedApi({type: 'knowledge', systemType: apiType.value}) loadSharedApi({type: 'knowledge', systemType: apiType.value})
.putLarkKnowledge(id, obj, loading) .putLarkKnowledge(id, obj, loading)
.then(() => {
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
.putReEmbeddingKnowledge(id)
.then(() => { .then(() => {
MsgSuccess(t('common.saveSuccess')) MsgSuccess(t('common.saveSuccess'))
}) })
})
} else { } else {
loadSharedApi({type: 'knowledge', systemType: apiType.value}) loadSharedApi({type: 'knowledge', systemType: apiType.value})
.putKnowledge(id, obj, loading) .putKnowledge(id, obj, loading)