upgrade
This commit is contained in:
@ -39,7 +39,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
async asyncData({ app, params, $axios }) {
|
||||
async asyncData ({ app, params, $axios }) {
|
||||
let Info = null
|
||||
let Articels = []
|
||||
const nowPage = params.page ? parseInt(params.page) : 1
|
||||
@ -80,12 +80,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) {
|
||||
|
Reference in New Issue
Block a user