Commit 19293041 authored by mengwenhao's avatar mengwenhao

fix: 商品提交信息修改

parent c7faa17d
......@@ -627,7 +627,7 @@ import {
checkGoodsName,
getShopsList,
postAddShop,
// editGoods
editGoods
} from "@/service/Goods/goods";
import { GOODS_URI } from "../../../../server/config.js";
......@@ -1276,12 +1276,12 @@ export default {
console.log(query);
// const res = await editGoods(query);
// if (res.code !== 0) {
// return this.$message.error(res.reason);
// }
// this.$message.success("商品编辑成功!");
// this.$router.replace({ name: "GoodsList" });
const res = await editGoods(query);
if (res.code !== 0) {
return this.$message.error(res.reason);
}
this.$message.success("商品编辑成功!");
this.$router.replace({ name: "GoodsList" });
}
}
};
......
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