fix: 修复复制时间按计划来

This commit is contained in:
zhangds 2022-10-11 12:00:52 +08:00
parent 0db88833c3
commit ee05ff8e1f
1 changed files with 4 additions and 2 deletions

View File

@ -238,8 +238,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
// 1. couponType
console.log("couponType =>", couponType);
console.log("详情 =>", editData);
let deDateTime = sessionStorage.getItem("datetime");
console.log(deDateTime);
if (couponType === 0) {
// 1.1
await getPlanList().then((arr) => {
@ -254,6 +252,10 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
plan_row !== undefined &&
plan_row !== "undefined"
) {
sessionStorage.setItem(
"datetime",
JSON.stringify(plan_row.key.dateTime)
);
setForm_info_data({
plan_id: plan_row,
});