src/main/webapp/static/js/plan/plan.js
@@ -307,8 +307,7 @@ data: { 'planId': $('.layui-layer-title').text(), 'filename': filename, 'filesize': file.size, 'token': token 'filesize': file.size }, method: 'POST', success: function (res) { @@ -639,12 +638,13 @@ // 构建带参数的内容 layer.open({ type: 1, title: '上传文件-'+planIdSign, title: '上传文件-'+planIdSign+'-'+data.id, content: $('#myModal') }); // 获取路径下的文件列表,使用 jQuery 的 ajax 方法 $.ajax({ url: '/plan/url/view/file/auth', headers: {'token': localStorage.getItem('token')}, data:{ planId:planIdSign },