提示信息如下
onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
截图不全,但这个报错提示是说你用 async setup 函数,但是onMounted 不在第一个await 之前