Browse Source

修复重置日期时出现的异常问题(I8PZFA)

RuoYi 2 years ago
parent
commit
8c8d53a9cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-admin/src/main/resources/static/ruoyi/js/common.js

+ 1 - 1
ruoyi-admin/src/main/resources/static/ruoyi/js/common.js

@@ -42,7 +42,7 @@ $(function() {
     });
 	 
     // laydate 时间控件绑定
-    if ($(".select-time").length > 0) {
+    if ($(".select-time").length > 0 && $('#startTime').length > 0 && $('#endTime').length > 0) {
        layui.use('laydate', function() {
             var laydate = layui.laydate;
             startLayDate = laydate.render({