问题

[Vue warn]: Error in mounted hook: “TypeError: handler.call is not a function“_vue

原因

比如下面 ​​mounted: {},​​​ 应该写成 ​​mounted() {},​

export default {
props: {
value: Boolean,
},
data () {
return {

};
},
components: {

},
created() {

},
mounted: {

},
methods: {
handleClose() {
this.$emit("input", false);
},
},
};