fix: 修复数据集管理编辑分组节点名称,树节点没有更新的异常的情况

main
wu.jian2 2 years ago
parent 5e9d69edd6
commit 2141399735

@ -50,8 +50,7 @@
</template>
<script>
import { categoryAdd, categoryUpdate } from 'data-room-ui/js/utils/datasetConfigService'
import { categoryNameRepeat } from "../../js/utils/datasetConfigService";
import { categoryAdd, categoryUpdate, categoryNameRepeat } from 'data-room-ui/js/utils/datasetConfigService'
export default {
name: 'CategroyEditForm',
props: {
@ -154,9 +153,8 @@ export default {
id = this.dataForm.id
parentId = this.nodeData.parentId
}
const params = {
id: id,
id: this.dataForm.id,
name: this.dataForm.name,
parentId: parentId,
type: this.type,
@ -164,7 +162,7 @@ export default {
}
if (id) {
categoryUpdate(params).then((r) => {
params.id = r
// params.id = r
this.$message.success('保存成功')
this.cancel()
try {

Loading…
Cancel
Save