Closed ywmail closed 5 years ago
I need the value to be validated by the server side before added to innerTags when user hit Enter, so the validate and before-adding function should return a promise, for example:
innerTags
validate(val) { return new Promise((resolve, reject) => { this.dataAuthorityService.getAuthorityFromAccount(val).then(res => { if (res.data.length > 0) { resolve(res.data.id) } else { alert('failed') } }).catch(error => { alert('failed') }) })
I need the value to be validated by the server side before added to
innerTags
when user hit Enter, so the validate and before-adding function should return a promise, for example: