diff --git a/supervise-message-ui/src/router/index.js b/supervise-message-ui/src/router/index.js index aaf04c71..82630792 100644 --- a/supervise-message-ui/src/router/index.js +++ b/supervise-message-ui/src/router/index.js @@ -22,14 +22,31 @@ export const constantRoutes = [ { path: '/', redirect: 'index' - }, { - path: '/login', - component: () => import('@/views/login/login.vue') - }, { - path: '/home', - component: () => import('@/views/Home/Home.vue'), - name: 'home' - + }, + // { + // path: '/login', + // component: () => import('@/views/login/login.vue') + // }, { + // path: '/home', + // component: () => import('@/views/Home/Home.vue'), + // name: 'home' + // + // }, + { + path: '/index', + component: Layout, + redirect: '/index', + children: [{ + path: '/index', + component: () => + import('@/views/index.vue'), + name: 'index', + meta: { + title: '主页', + noCache: true, + affix: true + } + }] }, { path: '/message', diff --git a/supervise-message-ui/src/views/index.vue b/supervise-message-ui/src/views/index.vue index f6d9032a..a9159669 100644 --- a/supervise-message-ui/src/views/index.vue +++ b/supervise-message-ui/src/views/index.vue @@ -1,289 +1,17 @@ - @@ -292,72 +20,8 @@ export default { .imgDemo { width: 100%; height: 100%; - background: radial-gradient(#fff, #f5f7f4, #fff); + background: radial-gradient(#fff,#f5f7f4, #fff); } - -.middle { - justify-content: center; - width: 100%; - height: 300px; - -} - -.index { - padding: 40px 80px; - background: #FFFFFF; - - .index_top { - - display: flex; - flex-direction: row; - align-items: center; - - .index_top_text { - font-size: 25px; - font-weight: bold; - color: #000; - margin-right: 20px; - } - - .index_top_right { - font-size: 14px; - font-weight: bold; - color: #FF5046; - } - } - - .index_content { - display: flex; - flex-direction: column; - margin-top: 30px; - - .index_content_top { - display: flex; - flex-direction: row; - } - - .index_content_bottom { - display: flex; - flex-direction: row; - margin-top: 30px; - } - - .item_border { - border-radius: 10px; - border: 1px solid #cddbf7; - } - } - - .index_bottom { - margin-top: 20px; - display: flex; - - .item_border { - border-radius: 10px; - border: 1px solid #cddbf7; - } - } +canvas { } - -canvas {}