代码调试

This commit is contained in:
BianLzhaoMin 2025-02-26 09:43:55 +08:00
parent fedd8da196
commit 5c83d09107
1 changed files with 4 additions and 4 deletions

View File

@ -269,10 +269,10 @@
var upload = layui.upload;
// 执行上传功能
var uploadInst = upload.render({
elem: '.uploadBtn', // 上传按钮
url: ctxPath + '/upload/file', // 文件上传接口(这里要根据实际接口替换)
accept: 'file', // 选择文件类型
multiple: false, // 支持多文件上传
elem: '.uploadBtn',
url: ctxPath + '/upload/file',
accept: 'file',
multiple: false,
auto: true, // 禁用自动上传,点击确定按钮后上传
choose: function (obj) {
// 当选择文件时会触发这个方法