data() { return { list: []; } }
方法一:
if(this.list == undefined || this.list.length <= 0){ return }
方法二:
if (JSON.stringify(this.list) !== '[]' || Object.keys(this.list).length !== 0){ return }