Skip to content

Commit b1b828d

Browse files
committed
refactor: update views
1 parent f1322d4 commit b1b828d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/router/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const routes = [
1717
// this generates a separate chunk (about.[hash].js) for this route
1818
// which is lazy-loaded when the route is visited.
1919
component: () =>
20-
import(/* webpackChunkName: "dashboard" */ '@/views/Dashboard.vue'),
20+
import(
21+
/* webpackChunkName: "dashboard" */ '@/views/dashboard/Dashboard.vue'
22+
),
2123
},
2224
{
2325
path: '/theme',

src/views/Dashboard.vue renamed to src/views/dashboard/Dashboard.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</CCol>
2929
</CRow>
3030
<CRow>
31-
<MainChartExample
31+
<MainChart
3232
style="height: 300px; max-height: 300px; margin-top: 40px"
3333
/>
3434
</CRow>
@@ -275,14 +275,14 @@ import avatar3 from '@/assets/images/avatars/3.jpg'
275275
import avatar4 from '@/assets/images/avatars/4.jpg'
276276
import avatar5 from '@/assets/images/avatars/5.jpg'
277277
import avatar6 from '@/assets/images/avatars/6.jpg'
278-
import MainChartExample from './charts/MainChartExample'
279-
import WidgetsStatsA from './widgets/WidgetsStatsTypeA.vue'
280-
import WidgetsStatsD from './widgets/WidgetsStatsTypeD.vue'
278+
import MainChart from './MainChart'
279+
import WidgetsStatsA from './../widgets/WidgetsStatsTypeA.vue'
280+
import WidgetsStatsD from './../widgets/WidgetsStatsTypeD.vue'
281281
282282
export default {
283283
name: 'Dashboard',
284284
components: {
285-
MainChartExample,
285+
MainChart,
286286
WidgetsStatsA,
287287
WidgetsStatsD,
288288
},

0 commit comments

Comments
 (0)