先provide,再赋值setup() { const list = ref(null); provide('list', list); ajax().then(res => { list.value = res; }); }
先provide,再赋值