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

init project

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