diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index e44faeea0..e3b36042a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -71,7 +71,7 @@
-
+
@@ -248,14 +248,12 @@ } } - jQuery(document).ready(function() { + $(function() { $('#post').select2({ placeholder:"请选择岗位", - width: 'auto', allowClear: true }); }) - diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index c2857f1c8..acef2c50f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -85,7 +85,7 @@
-
+
@@ -218,6 +218,13 @@ layer.close(index); } } + + $(function() { + $('#post').select2({ + placeholder:"请选择岗位", + allowClear: true + }); + }) \ No newline at end of file