Skip to content

单文件组件中使用 queries 请求返回的数据需要通过 .value 获取 #29

Closed
@macbookplus

Description

@macbookplus

Bug 描述 Bug description

在vue单文件组件中使用 queries 请求返回的数据需要通过 .value 获取

    <span v-if="queries[i.id]?.loading.value">loading...</span>
    <span v-else> {{ queries[i.id]?.data.value }}</span>

代码重现 Reproduce

https://codesandbox.io/s/awesome-easley-nwydw?file=/src/App.vue

期望结果 Desired result

能直接通过queries[id].loadingqueries[id].data 获取数据

其他信息 Other information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions