layui-formSelects icon indicating copy to clipboard operation
layui-formSelects copied to clipboard

请问大佬,第二次加载的时候货出现id not render !!!是什么情况啊?

Open samulle opened this issue 5 years ago • 1 comments

formSelects.config('parentMenu_select', { // 转换数据格式 beforeSuccess: function(id, url, searchVal, result){ //我要把数据外层的code, msg, data去掉 result = result.data; //我要反转name covertData(result); //然后返回数据 return result; } }).data('parentMenu_select', 'server', { url: setter.requestUrl+'menu/menuTree?token='+layui.data(setter.tableName)[setter.request.tokenName], response: { statusCode: 200, } });

第二次打开界面的时候会出现 image

samulle avatar Mar 31 '19 13:03 samulle

你应该是在html写死了这个下拉搜索的内容,实际没有用formselect,所以会报这个warning

cuishuang avatar Apr 09 '19 02:04 cuishuang