async created () {
console.log(`log at:${Date.now()}`)
const res = await get('/weapp/demo')
console.log(`log at:${Date.now()}`);
}
漏了async 就会报错
参考:
async created () {
console.log(`log at:${Date.now()}`)
const res = await get('/weapp/demo')
console.log(`log at:${Date.now()}`);
}
漏了async 就会报错
参考: