先provide,再赋值
setup() { const list = ref(null); provide('list', list); ajax().then(res => { list.value = res; }); }
1.4m articles
1.4m replys
5 comments
57.0k users