Commit 4d559b2a authored by 涂伟's avatar 涂伟

fix: 'H5手持功能路径新增product类型'

parent 3908e04c
......@@ -646,7 +646,7 @@ const BookConfigNew = props => {
>
{standingTable.map((item, index) => (
<Option key={index} value={item.value}>
{item.text}
{item.value}
</Option>
))}
</Select>
......
......@@ -418,11 +418,15 @@ const MiniMenu = props => {
// 新增提交的回调
const submitCallback = (prop, item, e) => {
setSubmitLoading(true);
let obj = { ...prop };
const productType =
prop.pageUrl.split('/')[1] === 'civ_mobile' ? prop.pageUrl.split('/')[1] : '';
const pageUrl = prop.pageUrl.includes('/civ_mobile')
? prop.pageUrl.replace('/civ_mobile', '')
: prop.pageUrl;
let obj = { ...prop, productType, pageUrl };
// if (addType === 3 || addType === 4) {
// obj.relatedRoleList = String(roleList) || '';
// }
console.log(obj);
console.log(e);
const parentID = item.menuID ? item.menuID : '-1';
addMenu({
......@@ -461,9 +465,14 @@ const MiniMenu = props => {
};
// 编辑的回调
const editSubmitCallback = prop => {
const productType =
prop.pageUrl.split('/')[1] === 'civ_mobile' ? prop.pageUrl.split('/')[1] : '';
const pageUrl = prop.pageUrl.includes('/civ_mobile')
? prop.pageUrl.replace('/civ_mobile', '')
: prop.pageUrl;
setLoading(true);
console.log(prop);
let obj = { ...prop };
let obj = { ...prop, productType, pageUrl };
// if (nodeType === 3 || nodeType === 4) {
// obj.relatedRoleList = String(roleList) || '';
// }
......
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