Commit 54e579a1 authored by 涂伟's avatar 涂伟

fix: 'mobile配置提交逻辑优化'

parent b4c0d538
Pipeline #76050 passed with stages
......@@ -423,13 +423,13 @@ const MiniMenu = props => {
if (productType === '') {
productType = 'MobileGCK';
}
if (prop.pageUrl.indexOf('/') === -1) {
if (prop.pageUrl?.indexOf('/') === -1) {
productType = 'flutter';
}
if (!typeArr.includes(productType)) {
productType = '';
}
let pageUrl = productType ? prop.pageUrl.replace(`${productType}`, '') : prop.pageUrl;
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