浏览代码

前端通知弹窗显示时间修改为 3s

reghao 4 年之前
父节点
当前提交
6614c08ced
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dmaster/src/main/resources/static/js/main.js

+ 1 - 1
dmaster/src/main/resources/static/js/main.js

@@ -114,7 +114,7 @@ layui.use(['element', 'form', 'layer', 'upload'], function () {
     /*  漂浮消息 */
     $.fn.Messager = function (result) {
         if (result.code === 0) {
-            layer.msg(result.msg, {offset: '15px', time: 1000, icon: 1});
+            layer.msg(result.msg, {offset: '15px', time: 3000, icon: 1});
             setTimeout(function () {
                 if (result.data === 'submit[refresh]') {
                     parent.location.reload();