Commit f8f64bf8 authored by 徐一鸣's avatar 徐一鸣

服务超市提示优化

parent 8bfb0ef8
...@@ -102,13 +102,13 @@ export default { ...@@ -102,13 +102,13 @@ export default {
.then(({ data }) => { .then(({ data }) => {
if (data.success == 1) { if (data.success == 1) {
this.$message({ this.$message({
message: `添加购物车成功`, message: data.errMsg,
type: "success", type: "success",
}); });
this.$store.commit("setMenuCartState"); this.$store.commit("setMenuCartState");
} else { } else {
this.$message({ this.$message({
message: `添加购物车失败`, message: data.errMsg,
type: "warning", type: "warning",
}); });
} }
......
...@@ -163,13 +163,13 @@ export default { ...@@ -163,13 +163,13 @@ export default {
.then(({ data }) => { .then(({ data }) => {
if (data.success == 1) { if (data.success == 1) {
this.$message({ this.$message({
message: `添加购物车成功`, message: data.errMsg,
type: "success", type: "success",
}); });
this.$store.commit("setMenuCartState"); this.$store.commit("setMenuCartState");
} else { } else {
this.$message({ this.$message({
message: `添加购物车失败`, message: data.errMsg,
type: "warning", type: "warning",
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment