VUE绑定Layui中的checkbox,页面不显示

VUE绑定Layui中的checkbox,页面不显示,估计是layui中没有render的问题,但动态加载完数据,给form.render(),还是不显示,网上看其他人的做法,居然解决了

 mounted: function () {
                this.getProcessList();
            },
            //主要用来解决checkbox不显示的问题
            updated: function () {
                this.$nextTick(function () {
                    layui.form.render();
                });
            },

  

posted @ 2023-02-28 22:12  sharestone  阅读(137)  评论(0编辑  收藏  举报