# add counter view
This commit is contained in:
parent
59f2c124fe
commit
5fc52eaa50
|
@ -51,6 +51,20 @@ export const constantRouterMap = [
|
||||||
meta: { title: 'documentation', icon: 'documentation', noCache: true }
|
meta: { title: 'documentation', icon: 'documentation', noCache: true }
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/counter',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/counter/index',
|
||||||
|
meta: {
|
||||||
|
title: 'counter',
|
||||||
|
icon: 'chart'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{ path: 'index', component: () => import('@/views/counter/index'), name: 'counter', meta: { title: 'counter' }},
|
||||||
|
{ path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }},
|
||||||
|
{ path: 'count', component: () => import('@/views/counter/count'), name: 'count', meta: { title: 'count' }}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/guide',
|
path: '/guide',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<template>
|
||||||
|
<div class="device-container">
|
||||||
|
<h3>Device List</h3>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'device'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
|
@ -0,0 +1,15 @@
|
||||||
|
<template>
|
||||||
|
<div class="device-container">
|
||||||
|
<h3>Counter Page</h3>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'counter'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue