第70行 修正用户初始加载状态.

依据/user.json中的数据,修正了“启用”列的调用代码
develop
七彩枫叶 2020-06-17 22:10:21 +08:00 committed by Gitee
parent 0a5b3f52ad
commit 71be5701c5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@
</script>
<script type="text/html" id="user-enable">
<input type="checkbox" name="enable" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="user-enable" {{ d.id == 2 ?'': 'checked' }}>
<input type="checkbox" name="enable" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="user-enable" {{ d.enable == 0 ? 'checked' : '' }}>
</script>
<script type="text/html" id="user-sex">