diff --git a/config/proxy.js b/config/proxy.js index 971a07d..f6ba067 100644 --- a/config/proxy.js +++ b/config/proxy.js @@ -17,7 +17,7 @@ }, }, '/storemanagement/': { - target: 'http://10.2.1.26:21995/storemanagement/', + target: 'http://localhost:5248/', changeOrigin: true, secure: false, //关闭证书验证 pathRewrite: { diff --git a/src/.umi-production/.cache/webpack/default-production/0.pack b/src/.umi-production/.cache/webpack/default-production/0.pack deleted file mode 100644 index eab0b6d..0000000 Binary files a/src/.umi-production/.cache/webpack/default-production/0.pack and /dev/null differ diff --git a/src/.umi-production/.cache/webpack/default-production/index.pack b/src/.umi-production/.cache/webpack/default-production/index.pack deleted file mode 100644 index 43a98dc..0000000 Binary files a/src/.umi-production/.cache/webpack/default-production/index.pack and /dev/null differ diff --git a/src/pages/shopmanage/printerTemplate/index.jsx b/src/pages/shopmanage/printerTemplate/index.jsx index 8e3f154..e71a3a0 100644 --- a/src/pages/shopmanage/printerTemplate/index.jsx +++ b/src/pages/shopmanage/printerTemplate/index.jsx @@ -1,4 +1,4 @@ -import { Form, Tabs, Row, Col, Card,Radio,message,Modal } from 'antd'; +import { Form, Tabs, Row, Col, Card,Radio,message } from 'antd'; import { PageContainer, FooterToolbar } from '@ant-design/pro-layout'; import React, { useState, useRef, useEffect } from 'react'; import ProForm, { ProFormText, ModalForm } from '@ant-design/pro-form'; @@ -12,7 +12,6 @@ const printerTemplateInfo = () => { const [panes, setPanes] = useState([]); const [activeKey, SetActiveKey] = useState(); const [isAdd, SetIsAdd] = useState(false); - const [isModalOpen, setIsModalOpen] = useState(false); useEffect(() => { GetStoreTemplaterList(); @@ -123,6 +122,8 @@ const printerTemplateInfo = () => { }; + + return ( { type="editable-card" onChange={onChange} activeKey={activeKey} - onEdit={(targetKey, action)=>{ - setIsModalOpen(true); - }} + onEdit={onEdit} > {panes?.map(pane => ( @@ -155,12 +154,6 @@ const printerTemplateInfo = () => { ))} - - {}} onCancel={setIsModalOpen(false)}> -

确认删除吗?

-
- -
); };