Skip to content

Commit d10b113

Browse files
committed
vub
1 parent a095d2d commit d10b113

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"axios": "^0.18.0",
1616
"babel-polyfill": "^6.26.0",
1717
"fastclick": "^1.0.6",
18+
"viewport-units-buggyfill": "^0.6.2",
1819
"vue": "^2.5.17",
1920
"vue-lazyload": "^1.2.6",
2021
"vue-router": "^3.0.1",

src/assets/styles/base.styl

+4
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ body
2424

2525
.fl
2626
float left
27+
28+
img {
29+
content: normal !important;
30+
}

src/base-components/navbar/navbar.vue

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export default {
2929
>.back
3030
with-bg(9px, 17px, './back-arrow.png')
3131
ab-l(18px)
32-
extend-click()
3332
>.title
3433
color #1F2845
3534
letter-spacing -0.43px

src/main.js

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import 'styles/index.styl'
1111
import store from './store'
1212
import axios from 'axios'
1313

14+
const vub = require('viewport-units-buggyfill')
15+
16+
window.addEventListener('load', () => {
17+
vub.init({ hacks: window.viewportUnitsBuggyfillHacks })
18+
})
19+
1420
// import { wechatConfig } from 'shared/wechat-config'
1521

1622
// wechatConfig()

0 commit comments

Comments
 (0)