This commit is contained in:
2019-12-13 11:46:15 +08:00
parent eaf48b86c3
commit 703f411ee7
17 changed files with 2662 additions and 2030 deletions

View File

@ -39,7 +39,7 @@
<script>
export default {
async asyncData(inject) {
async asyncData (inject) {
const { app, params, $axios } = inject
let Info = null
let Articels = []
@ -81,12 +81,12 @@ export default {
nowPath: params.terms ? '/' + params.terms : ''
}
},
mounted() {
mounted () {
this.$finishLoad()
this.analyseImages()
},
methods: {
async analyseImages() { // 图片大小分析及处理
async analyseImages () { // 图片大小分析及处理
const articleImgsWidth = this.$refs.articleImgs.getBoundingClientRect().width
this.imageHeight = articleImgsWidth * 0.5625
for (const n in this.Articels) {