fix: 修复source编辑时name报错的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user