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
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