Skip to content

Commit

Permalink
fix: uploaded document error(1Panel-dev#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Dec 25, 2024
1 parent 9f012fd commit 3bae4c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions ui/src/views/dataset/UploadDocumentDataset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
</div>
</div>
<div class="create-dataset__footer text-right border-t" v-if="active !== 2">
<el-button @click="router.go(-1)" :disabled="loading">取消</el-button>
<el-button @click="prev" v-if="active === 1" :disabled="loading">上一步</el-button>
<el-button @click="next" type="primary" v-if="active === 0" :disabled="loading">
<el-button @click="router.go(-1)" :disabled="SetRulesRef?.loading || loading">取消</el-button>
<el-button @click="prev" v-if="active === 1" :disabled="SetRulesRef?.loading || loading">上一步</el-button>
<el-button @click="next" type="primary" v-if="active === 0" :disabled="SetRulesRef?.loading || loading">
{{ documentsType === 'txt' ? '下一步' : '开始导入' }}
</el-button>
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
<el-button
@click="submit"
type="primary"
v-if="active === 1"
:disabled="SetRulesRef?.loading || loading"
>
开始导入
</el-button>
</div>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/views/dataset/component/SetRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ onMounted(() => {
defineExpose({
paragraphList,
checkedConnect
checkedConnect,
loading
})
</script>
<style scoped lang="scss">
Expand Down

0 comments on commit 3bae4c5

Please sign in to comment.