Browse Source

默认跳转首页

main
ZhaoYang 19 hours ago
parent
commit
64436728f5
  1. 21
      chenhai-ui/src/router/index.js
  2. 2
      chenhai-ui/src/views/Home.vue
  3. 2
      chenhai-ui/src/views/map_pol/mapVisual.vue

21
chenhai-ui/src/router/index.js

@ -76,9 +76,10 @@ export const constantRoutes = [
},
{
path: '/indexHome',
component: () => import('@/views/index'),
hidden: true,
path: '',
component: Layout,
redirect: 'index',
component: () => import('@/views/Home'),
children: [
{
path: 'index',
@ -88,20 +89,6 @@ export const constantRoutes = [
]
},
// {
// path: '',
// component: Layout,
// redirect: 'index',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index'),
// name: 'Index',
// meta: { title: '首页', icon: 'dashboard', affix: true }
// }
// ]
// },
{
path: '/lock',

2
chenhai-ui/src/views/Home.vue

@ -332,7 +332,7 @@ export default {
this.showOverview = false
},
handleAdmin(e) {
window.open('/indexHome', '_blank')
window.open('/features', '_blank')
this.showOverview = false
},
assetAuantity() {

2
chenhai-ui/src/views/map_pol/mapVisual.vue

@ -355,7 +355,7 @@ export default {
<style scoped>
.mapcontainer {
position: relative;
height: 90%;
height: 100%;
width: 100%;
overflow: hidden;
}

Loading…
Cancel
Save