webpack4 下進(jìn)行 dev 調(diào)試時,form-item數(shù)據(jù)校驗時報錯:asyncValidator2.default is not a constructor。。。調(diào)試下發(fā)現(xiàn)asyncValidator2.default.default才是這個需要的constructor。看了源碼:可能是form-item.vue文件的這一句有問題: const validator = new AsyncValidator(descriptor);可能要改成(不是很確定): const validator = new AsyncValidator.default(descriptor);
webpack4 下進(jìn)行 dev 調(diào)試時,form-item數(shù)據(jù)校驗時報錯
白豬掌柜的
2018-08-05 14:03:45