接入全景数字地图
Showing
3 changed files
with
27 additions
and
2 deletions
| ... | @@ -179,6 +179,28 @@ const routes: RouteRecordRaw[] = [ | ... | @@ -179,6 +179,28 @@ const routes: RouteRecordRaw[] = [ |
| 179 | } | 179 | } |
| 180 | ] | 180 | ] |
| 181 | }, | 181 | }, |
| 182 | { | ||
| 183 | path: '/data-meta/portraitMap', | ||
| 184 | component: Layout, | ||
| 185 | meta: { | ||
| 186 | title: '全景地图', | ||
| 187 | icon: 'sidebar-videos', | ||
| 188 | }, | ||
| 189 | children: [ | ||
| 190 | { | ||
| 191 | path: '', | ||
| 192 | name: 'portraitMap', | ||
| 193 | component: () => import('@/views/data_meta/portraitMap.vue'), | ||
| 194 | meta: { | ||
| 195 | title: '全景地图', | ||
| 196 | sidebar: false, | ||
| 197 | breadcrumb: false, | ||
| 198 | cache: true, | ||
| 199 | reuse: true | ||
| 200 | }, | ||
| 201 | } | ||
| 202 | ] | ||
| 203 | } | ||
| 182 | ] | 204 | ] |
| 183 | 205 | ||
| 184 | export default routes | 206 | export default routes | ... | ... |
| ... | @@ -177,6 +177,9 @@ const useMenuStore = defineStore( | ... | @@ -177,6 +177,9 @@ const useMenuStore = defineStore( |
| 177 | if ((data== "/data-meta/reports/iframePage" || data== "/data-meta/report/budgetDataIndex") && r.path?.includes('/data-meta/report')) { | 177 | if ((data== "/data-meta/reports/iframePage" || data== "/data-meta/report/budgetDataIndex") && r.path?.includes('/data-meta/report')) { |
| 178 | return true; | 178 | return true; |
| 179 | } | 179 | } |
| 180 | if (data== "/data-meta/portraitMap" && r.path?.includes('/data-meta/portraitMap')) { | ||
| 181 | return true; | ||
| 182 | } | ||
| 180 | if (data.indexOf(`${r.path}/`) === 0 || data === r.path) { | 183 | if (data.indexOf(`${r.path}/`) === 0 || data === r.path) { |
| 181 | return true; | 184 | return true; |
| 182 | } | 185 | } | ... | ... |
| ... | @@ -157,9 +157,9 @@ const useRouteStore = defineStore( | ... | @@ -157,9 +157,9 @@ const useRouteStore = defineStore( |
| 157 | }; | 157 | }; |
| 158 | } | 158 | } |
| 159 | r = routes.find((route: any) => { | 159 | r = routes.find((route: any) => { |
| 160 | return route.path === path || route.path === m.path || `/${route.path}` === m.path || ((path.includes('budgetDataIndex') && path.includes('/data-meta/report') && route.path.includes('/data-meta/report')) || (path.includes('iframePage') && path.includes('/data-meta/report'))); | 160 | return route.path === path || route.path === m.path || `/${route.path}` === m.path || ((path.includes('budgetDataIndex') && path.includes('/data-meta/report') && route.path.includes('/data-meta/report')) || (path.includes('iframePage') && path.includes('/data-meta/report')) || (path.includes('/data-meta/portraitMap') && route.path.includes('/data-meta/portraitMap'))); |
| 161 | }); | 161 | }); |
| 162 | if (r && (path.includes('budgetDataIndex') || path.includes('iframePage'))) { | 162 | if (r && (path.includes('budgetDataIndex') || path.includes('iframePage')) || path.includes('portraitMap')) { |
| 163 | r.path = path; | 163 | r.path = path; |
| 164 | } | 164 | } |
| 165 | if(r && m.icon && m.icon !== "{}") { | 165 | if(r && m.icon && m.icon !== "{}") { | ... | ... |
-
Please register or sign in to post a comment