addTagToFlow(e) {
if (!this.IsArrayExists(this.localFlowTagEditData.tags, e)) {
this.localFlowTagEditData.tags.push({ tagId: e });
}
},
removeTagToFlow(e) {
this.localFlowTagEditData.tags.forEach((item, index) => {
if (item.tagId === e) {
this.localFlowTagEditData.tags.splice(index, 1);
}
});
},
/**
* @return {boolean}
*/
IsArrayExists(array, value) {
for (let item of array) {
if (value === item.tagId) {
return true;
}
}
return false;
},
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00