产品,原料和bom更新后重新加载store

This commit is contained in:
砂糖
2025-08-04 09:19:01 +08:00
parent cb0c37f041
commit 8ba27c402f
6 changed files with 17 additions and 6 deletions

View File

@@ -430,6 +430,7 @@ export default {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
this.$store.dispatch('category/getProductMap');
}).finally(() => {
this.buttonLoading = false;
});
@@ -438,6 +439,7 @@ export default {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.$store.dispatch('category/getProductMap');
}).finally(() => {
this.buttonLoading = false;
});
@@ -455,6 +457,7 @@ export default {
this.loading = false;
this.getList();
this.$modal.msgSuccess("删除成功");
this.$store.dispatch('category/getProductMap');
}).catch(() => {
}).finally(() => {
this.loading = false;