Commit e1255dfa authored by 涂伟's avatar 涂伟

fix: 'productType新增ThirdParty'

parent e60c65e9
Pipeline #79012 passed with stages
......@@ -418,7 +418,7 @@ const MiniMenu = props => {
};
// 处理数据
const getParams = prop => {
const typeArr = ['MobileGCK', 'civ_mobile', 'flutter'];
const typeArr = ['MobileGCK', 'civ_mobile', 'flutter','ThirdParty'];
let productType = prop.pageUrl?.split('/')[0] || '';
if (productType === '') {
productType = 'MobileGCK';
......@@ -429,6 +429,9 @@ const MiniMenu = props => {
if (!typeArr.includes(productType)) {
productType = '';
}
if (prop.pageUrl?.indexOf('http') !== -1) {
productType = 'ThirdParty';
}
let pageUrl = productType ? prop.pageUrl?.replace(`${productType}`, '') : prop.pageUrl;
if (productType === 'flutter') {
pageUrl = pageUrl.replace('/', '');
......
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