Skip to content

ts类型报错‘不能将类型“Ref<string>”分配给类型“string”。’ #214

Description

@jiajiaxing1

"name": "unibest-template",
"type": "commonjs",
"version": "2.6.3",微信小程序,ts类型报错‘不能将类型“Ref”分配给类型“string”。’
感觉像是ts对vue3这种写法不支持,
const currentConversationID = ref(''),
模版中直接 :conversationID="currentConversationID"
代码逻辑没问题,就是会有ts类型报错,查了很多资料,还是解决不了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions