Commit fe375ca5 by 张立顺

fix 路径配置修改

1 parent 14bbeedc
...@@ -116,8 +116,10 @@ Component({ ...@@ -116,8 +116,10 @@ Component({
const config = await setConfigInfo(app.globalData) const config = await setConfigInfo(app.globalData)
const reportWebview = config?.report_webview const reportWebview = config?.report_webview
if (reportWebview) { if (reportWebview) {
const base = String(reportWebview).replace(/\/+$/, '')
const webviewUrl = `${base}/home?openType=miniApp`
menuList = menuList.map(item => menuList = menuList.map(item =>
item.menuText === '检测报告' ? { ...item, webviewUrl: reportWebview } : item item.menuText === '检测报告管理' ? { ...item, webviewUrl } : item
) )
} }
} catch (e) { } catch (e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!