修改用户编辑页面当前用户的变量名称

master
Guo XIn 1 year ago
parent 7ce372825c
commit 4a395fe6e6
  1. 2
      shandan-system/src/main/resources/static/js/sys/user/edit.js
  2. 2
      shandan-system/src/main/resources/view/sys/user/userEdit.html

@ -2,7 +2,7 @@ let form;
layui.use(['element', 'form', 'table', 'layer', 'laydate', 'tree', 'dict', 'dtree'], function () {
let layDate = layui.laydate;
form = layui.form;
layui.dict.setData('dict-secret-level', user);
layui.dict.setData('dict-secret-level', current_user);
//日期选择器
layDate.render({

@ -17,7 +17,7 @@
}
</style>
<script th:inline="javascript">
const user = /*[[${user}]]*/ {}
const current_user = /*[[${user}]]*/ {}
</script>
</head>
<body>