

于是我去看了一下报错的地方,发现是因为this.$refs.input
获取不到
然后我加了一句话就好了

this.$nextTick(() => {
if (this.$type === 'prompt') {
this.validate();
}
})
this.$refs.input
获取不到this.$nextTick(() => {
if (this.$type === 'prompt') {
this.validate();
}
})
本文标题:mint messagebox.prompt inputvalu
本文链接:https://www.haomeiwen.com/subject/xpnwqltx.html
网友评论