fix: 修复source编辑时name报错的问题
This commit is contained in:
@@ -180,7 +180,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
const nameDuplicateValidator = async (rule, value, callback) => {
|
const nameDuplicateValidator = async (rule, value, callback) => {
|
||||||
let validate = true
|
let validate = true
|
||||||
if (!this.sourceObj.knowledgeId) {
|
if (!this.sourceObj.id) {
|
||||||
const response = await this.getSourceList()
|
const response = await this.getSourceList()
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
const find = response.data.data.list.find(d => d.name === value)
|
const find = response.data.data.list.find(d => d.name === value)
|
||||||
|
|||||||
Reference in New Issue
Block a user