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
+2 -4
View File
@@ -29,9 +29,7 @@
{% block models_script %}
<script type="module">
import { FILE_API } from '/static/api/http.js'
<script>
layui.use(['jquery', 'element', 'form', 'upload'], function () {
var $ = layui.jquery
var element = layui.element
@@ -40,7 +38,7 @@
//选完文件后不自动上传
upload.render({
elem: '#select-img'
, url: FILE_API.PHOTOS()
, url: '/api/v1/file/photos'
, auto: false
, exts: 'jpg|png|gif|bmp|jpeg'
, size: 1000