张延森 3 years ago
parent
commit
42a877d4b7
2 changed files with 4 additions and 1 deletions
  1. 4
    0
      src/main.js
  2. 0
    1
      src/router/index.js

+ 4
- 0
src/main.js View File

35
   router,
35
   router,
36
   render: h => h(App)
36
   render: h => h(App)
37
 })
37
 })
38
+
39
+window.addEventListener('load', (event) => {
40
+  console.log('page is fully loaded')
41
+})

+ 0
- 1
src/router/index.js View File

28
 }
28
 }
29
 
29
 
30
 router.beforeEach((to, from, next) => {
30
 router.beforeEach((to, from, next) => {
31
-  console.log(to)
32
   next()
31
   next()
33
 })
32
 })
34
 
33