修复满额活动赠送积分不显示填写积分。商品规格默认项无法退格删除。权限菜单选择某一子项获取选择全部问题

This commit is contained in:
paulGao
2021-12-28 19:54:40 +08:00
parent 0a0066fe5c
commit f45b115355
3 changed files with 5 additions and 3 deletions

View File

@@ -541,7 +541,9 @@ export default {
permData.forEach((p) => {
if (that.hasPerm(p, rolePerms) && p.status != -1) {
this.$set(p, "checked", true);
if (p.children && p.children.length === 0) {
this.$set(p, "checked", true);
}
} else {
this.$set(p, "checked", false);
}