Commit 1e763f5b by 李伟康

fix(components): 更新场景类型判断逻辑

将场景类型从 5 修改为 7,以正确过滤入口列表和左侧菜单项。此变更确保只有当场景类型为 7 时,
才会包含 'DailyReport' 和 'EvaluationFormList' 相关的入口和菜单项。
1 parent d8dfb43f
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
} }
] ]
if (sceneType == 0) return [] if (sceneType == 0) return []
else if (sceneType === 5) { else if (sceneType === 7) {
return entranceList.filter(e => ['DailyReport', 'EvaluationFormList'].includes(e.name)); return entranceList.filter(e => ['DailyReport', 'EvaluationFormList'].includes(e.name));
} }
......
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
let result = [] let result = []
if (openSceneArr && openSceneArr.length) { if (openSceneArr && openSceneArr.length) {
openSceneArr.map(e => { openSceneArr.map(e => {
if (e == 1 || e == 0 || e == 5) { if (e == 1 || e == 0 || e == 7) {
result.push({ result.push({
...sceneTypeObject[e], ...sceneTypeObject[e],
id: e id: e
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!