Vue rendering browser crashes

when rendering with data v-for

clipboard.png

clipboard.png this is the content

both have for loop rendering data

if two are loaded at the same time, the browser will collapse, and the amount of data is not about 20

if you comment out the content first, load the navigation bar, and then remove the comments, it will work normally, but as soon as it is refreshed and both are loaded at the same time, the browser will crash again.

could you tell me how to solve the problem

Mar.03,2021

use v-if to control the rendering conditions and see


encountered the same problem. The browser crashed while rendering

is the paging effect when sliding to the bottom to load the next page. I have written this effect several times, and this is the first time I have encountered

.
    methods: {
        //Y
        getScrollTop() {
            let scrollTop = 0,
                bodyScrollTop = 0,
                documentScrollTop = 0;
            if(document.body) {
                bodyScrollTop = document.body.scrollTop;
            }
            if(document.documentElement) {
                documentScrollTop = document.documentElement.scrollTop;
            }
            scrollTop = (bodyScrollTop - documentScrollTop > 0) ? bodyScrollTop : documentScrollTop;
            return scrollTop;
        },
        //
        getWindowHeight() {
            let windowHeight = 0;
            if(document.compatMode == "CSS1Compat") {
                windowHeight = document.documentElement.clientHeight;
            } else {
                windowHeight = document.body.clientHeight;
            }
            return windowHeight;
        },
        //
        getScrollHeight() {
            let scrollHeight = 0,
                bodyScrollHeight = 0,
                documentScrollHeight = 0;
            if(document.body) {
                bodyScrollHeight = document.body.scrollHeight;
            }
            if(document.documentElement) {
                documentScrollHeight = document.documentElement.scrollHeight;
            }
            scrollHeight = (bodyScrollHeight - documentScrollHeight > 0) ? bodyScrollHeight : documentScrollHeight;
            return scrollHeight;
        }
    },
},
mounted(){
    this.defaults(this.currentPage);
    window.onscroll = () => {
        if(this.getScrollTop() + this.getWindowHeight() == this.getScrollHeight()) {
            this.defaults(PPthis.currentPage);
        }
    };
},
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3036d-2bcff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3036d-2bcff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?