问题
原因
比如下面 mounted: {},
应该写成 mounted() {},
export default {
props: {
value: Boolean,
},
data () {
return {
};
},
components: {
},
created() {
},
mounted: {
},
methods: {
handleClose() {
this.$emit("input", false);
},
},
};
[Vue warn]: Error in mounted hook: “TypeError: handler.call is not a function“
阅读 70
2022-08-18
比如下面 mounted: {},
应该写成 mounted() {},
export default {
props: {
value: Boolean,
},
data () {
return {
};
},
components: {
},
created() {
},
mounted: {
},
methods: {
handleClose() {
this.$emit("input", false);
},
},
};
相关推荐
精彩评论(0)