|
@@ -19,6 +19,8 @@ if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
|
|
|
Vue.prototype.$isSafari = true
|
|
Vue.prototype.$isSafari = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+Vue.prototype.$config = globalConfig
|
|
|
|
|
+
|
|
|
const idealWindowInnerWidth = 2436 // 设计稿的宽度
|
|
const idealWindowInnerWidth = 2436 // 设计稿的宽度
|
|
|
const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
|
|
const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
|
|
|
Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth
|
|
Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth
|