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