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