[Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got Array 解决方法

 

问题:

[Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got Array   解决方法

解决方法:

把下面代码注释了就没有报了

 // this.$nextTick(() => {
          //   this.$refs["dataForm"].resetFields();
          // });
 //用户
        .then(() => {
          this.$http({
            url: this.$http.adornUrl("/sys/user/listOpretorXW"),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.users = data.page.list;
          });
        })
        .then(() => {
          this.visible = true;
          // this.$nextTick(() => {
          //   this.$refs["dataForm"].resetFields();
          // });
        })

  

posted @ 2020-11-14 18:30  天之泉  阅读(10769)  评论(0编辑  收藏  举报