let isEmpty = (obj) => (Object.keys(obj).length === 0 ? true : false);
if (this.itemvalue === "" && isEmpty(this.current)) {
return this.$message.warning("请选择添加分组或者自己添加");
}
判断对象是否为空
最新推荐文章于 2024-01-23 16:01:58 发布
let isEmpty = (obj) => (Object.keys(obj).length === 0 ? true : false);
if (this.itemvalue === "" && isEmpty(this.current)) {
return this.$message.warning("请选择添加分组或者自己添加");
}