This commit is contained in:
曹辉 2023-01-29 14:21:06 +08:00
parent 8aafd9074c
commit 04eaeb3dd8

View File

@ -203,7 +203,6 @@
@change="change"
style="width: 340px"
:show-all-levels="false"
:clearable="true"
ref="cascader"
:placeholder="form.parentName ? form.parentName : ''"
>
@ -520,6 +519,10 @@ export default {
updatePicture(obj).then((res) => {});
}
this.$modal.msgSuccess("修改成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
this.info();
@ -527,6 +530,10 @@ export default {
} else {
addGoodsCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
this.info();