rabin 3 years ago
parent
commit
a14b053d47
1 changed files with 15 additions and 8 deletions
  1. 15 8
      assets/lib/manage/main.js

+ 15 - 8
assets/lib/manage/main.js

@@ -2425,14 +2425,21 @@ function fastEdit(e, url, title, col, index, type)
 		if ($('#update_button').length) {
 			$('#update_button').hide();
 		}
-
-		form.render();
-		$("select").each(function()
-		{
-			if ($(this).attr('xm-select')) {
-				layui.formSelects.render($(this).attr('xm-select'));
-			}
-		})
+		
+		layui.config({
+		    base: '../script/lib/layui/admin/' //静态资源所在路径
+		    ,version:true
+		  }).extend({
+		    formSelects: 'plugin/formselects/formselects',
+		  }).use(['formSelects', 'form'], function(){
+			layui.form.render();
+			$("select").each(function()
+			{
+				if ($(this).attr('xm-select')) {
+					layui.formSelects.render($(this).attr('xm-select'));
+				}
+			})
+		  });
 		init(560);
 	});
 }