fix: 修复source编辑时name报错的问题

This commit is contained in:
刘洪洪
2024-11-19 11:14:03 +08:00
parent 27650f2c37
commit 68a9b0725a

View File

@@ -180,7 +180,7 @@ export default {
data () {
const nameDuplicateValidator = async (rule, value, callback) => {
let validate = true
if (!this.sourceObj.knowledgeId) {
if (!this.sourceObj.id) {
const response = await this.getSourceList()
if (response.status === 200) {
const find = response.data.data.list.find(d => d.name === value)