|
@@ -36,11 +36,11 @@ Vue.prototype.$globalConfig = globalConfig
|
|
|
Vue.prototype.$cdnPath = process.env.VUE_APP_CDN_PATH
|
|
|
Vue.prototype.$msgCenter = new MessageCenter()
|
|
|
|
|
|
-const idealWindowInnerWidth = 2436 // 设计稿的宽度
|
|
|
+const idealWindowInnerWidth = 1125 // 设计稿的宽度
|
|
|
const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
|
|
|
-Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth
|
|
|
|
|
|
function onResize() {
|
|
|
+ Vue.prototype.$oneRemToPx = window.innerWidth * idealRootFontSize / idealWindowInnerWidth
|
|
|
document.documentElement.style.fontSize = Vue.prototype.$oneRemToPx + 'px'
|
|
|
}
|
|
|
onResize()
|