Skip to content

Commit b6deaee

Browse files
committed
feat: update router
1 parent 6c9f7e9 commit b6deaee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/src/router/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Vue from 'vue'
22
import VueRouter from 'vue-router'
33
import Base from '../views/base/index.vue'
4-
import Check from '../views/check/index.vue'
5-
import CheckStrictly from '../views/checkStrictly/index.vue'
6-
import LoadLazy from '../views/loadLazy/index.vue'
7-
import Custom from '../views/custom/index.vue'
8-
import VirtualTree from '../views/virtualTree/index.vue'
4+
const Check = () => import('../views/check/index.vue')
5+
const CheckStrictly = () => import('../views/checkStrictly/index.vue')
6+
const LoadLazy = () => import('../views/loadLazy/index.vue')
7+
const Custom = () => import('../views/custom/index.vue')
8+
const VirtualTree = () => import('../views/virtualTree/index.vue')
99

1010

1111
Vue.use(VueRouter)

0 commit comments

Comments
 (0)