Commit d76faf48 authored by GuanHua's avatar GuanHua

fix: 新增询价商品无法获取商城传过来数据问题

parent c1242f86
......@@ -8,6 +8,7 @@ import InquiryProductLayout from "./components/inquiryProduct";
import TradeTermsLayout from "./components/tradeTerms";
import { SaveOutlined } from "@ant-design/icons";
import AttachLayout from "./components/attach";
import { getCookie } from '@/utils/cookie'
import { PublicApi } from "@/services/api";
const layout: any = {
......@@ -93,7 +94,8 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
useEffect(() => {
if (isEdit && spam) {
const data: any = JSON.parse(sessionStorage.getItem(spam));
// const data: any = JSON.parse(sessionStorage.getItem(spam));
const data: any = getCookie(spam)
const inquiryListProductRequests: any[] = [];
inquiryListProductRequests.push({
commodityId: id,
......
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