|
@@ -197,7 +197,17 @@ const treeDataCpt = computed(() => {
|
|
|
}
|
|
|
return obj
|
|
|
}
|
|
|
- bigModelRouter().forEach((r) => {
|
|
|
+ const deep = (arr) => {
|
|
|
+ return arr.filter((v) => {
|
|
|
+ if (v.children?.length > 0) {
|
|
|
+ v.children = deep(v.children)
|
|
|
+ }
|
|
|
+ if (!v.meta.noAuth) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ deep(bigModelRouter()).forEach((r) => {
|
|
|
if (r.meta?.root) {
|
|
|
if (subsMap.has(r.meta.root)) {
|
|
|
subsMap.set(r.meta.root, [...subsMap.get(r.meta.root), formatRou(r)])
|