先provide,再赋值
setup() { const list = ref(null); provide('list', list); ajax().then(res => { list.value = res; }); }
2.1m questions
2.1m answers
60 comments
57.0k users