sleep(delay = 0) {
return new Promise((resolve) => {
setTimeout(resolve, delay);
});
}
async mounted() {
console.log('1');
await this.sleep(5000);
console.log('2');
await this.sleep(5000);
console.log('3');
await this.sleep(5000);
console.log('4');
await this.sleep(5000);
console.log('5');
await this.sleep(5000);
},
11-30