先provide,再赋值
setup() { const list = ref(null); provide('list', list); ajax().then(res => { list.value = res; }); }
548k questions
547k answers
4 comments
86.3k users