Skip to content

The environment created by vue-cli cannot determine the type of async function #3653

Closed
@maclaren0920

Description

@maclaren0920

The following code:
`
mounted() {
let str = Object.getPrototypeOf(this.test1).constructor;
console.log(str); // ƒ Function() { [native code] }
}

methods: {
async test1() {

    }

}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions