2017-06-06 79 views
0

不是什么大不了的事,但它使我的测试有点难看。我使用Vuelidate来处理我的数据验证,即使有在控制台的渲染分量,我的测试没有错误,我噶测试充满了这些:Vuelidate警告噶/柴测试

ERROR LOG: '[Vue warn]: Property or method "$v" is not defined on the 
instance but referenced during render Make sure to declare reactive 
data properties in the data option. (found in <Root>).' 

一切仍然运行,我d只是想清理错误。

回答

0

添加此介绍您的测试文件:

import Vuelidate from 'vuelidate' 
Vue.use(Vuelidate)