Skip to content

vue2, compilation error when using decorators in the options API #113

@cz1997-start

Description

@cz1997-start

Describe the bug

<script> import { handlerError } from '@/utils/util/decorator' export default { methods: { @handlerError() handleClick() { console.log('点击了') throw new Error('错误') }, }, } </script>

Reproduction

Steps to reproduce

No response

System Info

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions