Commit 739d18cb authored by 涂伟's avatar 涂伟

fix: '去掉thirdParty'

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