diff --git a/src/common/mixins.js b/src/common/mixins.js index 81ffd4b..3ababc3 100644 --- a/src/common/mixins.js +++ b/src/common/mixins.js @@ -20,6 +20,32 @@ export default { }, }, methods: { + initRem() { + var html = document.documentElement; + var w = html.getBoundingClientRect().width; + var fontSize = w / 1000; + html.style.fontSize = fontSize + "px"; + if (this.echartOption1) { + this.echartOption1.textStyle = { + fontSize: fontSize * 9 + }; + } + if (this.echartOption2) { + this.echartOption2.textStyle = { + fontSize: fontSize * 9 + }; + } + if (this.echartOption3) { + this.echartOption3.textStyle = { + fontSize: fontSize * 9 + }; + } + if (this.resetChart) { + setTimeout(() => { + this.resetChart() + }, 2000) + } + }, } } \ No newline at end of file diff --git a/src/views/resume/femalestaff.vue b/src/views/resume/femalestaff.vue index 5d569c8..943b532 100644 --- a/src/views/resume/femalestaff.vue +++ b/src/views/resume/femalestaff.vue @@ -7,12 +7,17 @@

{{ userDetail.fullName }}

-
+