FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mint-ui/example/entry.js at master · scopeCode/mint-ui · GitHub
scopeCode
/
mint-ui
Public
forked from
ElemeFE/mint-ui
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mint-ui
/
example
/
entry.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (24 loc) · 620 Bytes
Breadcrumbs
mint-ui
/
example
/
entry.js
Copy path
File metadata and controls
30 lines (24 loc) · 620 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import
Vue
from
'vue'
;
import
App
from
'./app'
;
import
routes
from
'./route'
;
import
Mint
from
'src/index'
;
import
VueRouter
from
'vue-router'
;
document
.
addEventListener
(
'DOMContentLoaded'
,
function
(
)
{
if
(
window
.
FastClick
)
window
.
FastClick
.
attach
(
document
.
body
)
;
}
,
false
)
;
Vue
.
use
(
Mint
)
;
Vue
.
use
(
VueRouter
)
;
const
router
=
new
VueRouter
(
)
;
router
.
map
(
routes
)
;
router
.
start
(
Vue
.
extend
(
{
components
:
{
app
:
App
}
}
)
,
'body'
)
;
router
.
beforeEach
(
transition
=>
{
document
.
title
=
transition
.
to
.
title
||
document
.
title
;
transition
.
next
(
)
;
}
)
;
router
.
afterEach
(
(
)
=>
{
document
.
body
.
scrollTop
=
0
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL