Commit 51b5b9be authored by 郭铭瑶's avatar 郭铭瑶 🤘

init project

parent e06eb892
......@@ -59,5 +59,5 @@ export default {
},
filterPath: '', // 地理筛选路径
mapPoints: [{}],
menus: [],
menus: [] as { key: string; name: string; children?: any[] }[],
}
......@@ -73,7 +73,7 @@
</div>
<div class="children">
<div
v-for="(child, i) in curMenu.children"
v-for="(child, i) in curMenu?.children || []"
:key="i"
:class="{ child: !child.list }"
>
......
......@@ -235,7 +235,7 @@
</div>
<div
v-else-if="
curKey.split('-').length === 3 && curMenu && curMenu._hasSub
curKey?.split('-').length === 3 && curMenu && curMenu._hasSub
"
class="card"
>
......@@ -292,11 +292,11 @@
</div>
<template
v-else-if="
((curKey.startsWith('2') ||
curKey.startsWith('3') ||
curKey.startsWith('4')) &&
curKey.split('-').length === 2) ||
(curKey.split('-').length === 3 &&
((curKey?.startsWith('2') ||
curKey?.startsWith('3') ||
curKey?.startsWith('4')) &&
curKey?.split('-').length === 2) ||
(curKey?.split('-').length === 3 &&
(!curMenu || !curMenu._hasSub)) ||
onlyOne
"
......
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