style: clean up whitespace and formatting in KnowledgeSetting.vue
This commit is contained in:
parent
8222cf42fa
commit
901b88887d
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user