vuejs里使用了v-if后 this.$refs无法获取ref的值

我用的是elementui里面的tag标签:
https://element.eleme.cn/#/zh...
image.png

里面使用了v-if。用到项目里面。
提示ref里面的saveTagInput未定义。
v-if this.$refs无法获取ref的值。
请问怎样才能获取这个ref的值呢?

image.png
image.png
报错信息:
Error in nextTick: "TypeError: Cannot read property '$refs' of undefined"

待解决 悬赏分:0 - 离问题结束还有 176天16小时9分12秒
反对 0举报 0 收藏 0

我来回答

回答5