|
@@ -15,7 +15,8 @@ Vue.config.productionTip = false
|
|
Vue.use(ElementUI);
|
|
Vue.use(ElementUI);
|
|
|
|
|
|
function setRem() {
|
|
function setRem() {
|
|
- const screenWidth = 1920
|
|
|
|
|
|
+ const clientWidth = document.body.clientWidth
|
|
|
|
+ const screenWidth = clientWidth > 900 ? 1920 : 750
|
|
const scale = screenWidth / 16
|
|
const scale = screenWidth / 16
|
|
const htmlWidth = document.documentElement.clientWidth || document.body.clientWidth
|
|
const htmlWidth = document.documentElement.clientWidth || document.body.clientWidth
|
|
// 得到html的Dom元素
|
|
// 得到html的Dom元素
|