老师您好:
const { ctx } = getCurrentInstance()
const { list, page } = await ctx.$api.getUserList()
ctx 获取不到globalProperties定义的 $api
const internalInstance = getCurrentInstance()
const { list, page } = await internalInstance.appContext.config.globalProperties.$api.getUserList()