feat:新建知识库交互优化

This commit is contained in:
du.meimei
2025-04-18 13:56:52 +08:00
parent c2ca9eaa6e
commit e5ce6be05d
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@
</el-col>
<el-col :span="24" class="text-center">
<el-button type="primary" size="medium" @click="save">
<el-button type="primary" size="medium" @click="save" v-if="!infoDialogVisible">
{{ $route.query.datasetId ? '保存' : '创建' }}
</el-button>
<el-button size="medium" v-if="!infoDialogVisible" @click="$router.go(-1)">取消</el-button>

View File

@@ -111,7 +111,7 @@ export default {
type: 'warning'
}).then(() => {
datasetDelete({ id: item.id }).then(res => {
if (res.content.result === 0) {
if (res.content.result === '0') {
this.$message({
type: 'success',
message: '删除成功!'