refactor(javascript):移除esm,es6语法

This commit is contained in:
zhengxinonly
2021-12-08 15:43:10 +08:00
parent 820ab9f5c6
commit 3453b01938
21 changed files with 75 additions and 193 deletions
+3 -5
View File
@@ -39,9 +39,7 @@
{{# } }}'|safe }}
</script>
<script type="module">
import { parserTableData as parseData } from '/static/api/http.js'
<script>
layui.use(['table', 'form', 'jquery', 'element', 'util'], function () {
let table = layui.table
let form = layui.form
@@ -63,7 +61,7 @@
]
table.render({
parseData,
parseData: parserTableData,
elem: '#log-access-table',
url: MODULE_PATH + 'access_log',
page: true,
@@ -73,7 +71,7 @@
})
table.render({
parseData,
parseData: parserTableData,
elem: '#log-login-table',
url: MODULE_PATH + 'login_log',
page: true,