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