diff --git a/main.py b/main.py index e48f755..14e4c42 100644 --- a/main.py +++ b/main.py @@ -201,7 +201,7 @@ async def share(background_tasks: BackgroundTasks, text: str = Form(default=None upload_ip_limit.add_ip(ip) return { 'detail': '分享成功,请点击取件码按钮查看上传列表', - 'data': {'code': code, 'key': key, 'name': name, 'text': _text} + 'data': {'code': code, 'key': key, 'name': name} } diff --git a/templates/index.html b/templates/index.html index e29f036..776bd96 100644 --- a/templates/index.html +++ b/templates/index.html @@ -199,7 +199,7 @@ :direction="direction" size="50%" > - +
取件码:${ file.code }
文件名:${ file.name }
@@ -214,15 +214,15 @@
- + - - + + @@ -260,7 +260,8 @@ quDrawer: false, jiDrawer: false, direction: 'btt', - files: [], + quFiles: [], + jiFiles: [], pageNum: 0, inputDisable: false, fileSizeLimit: '{{fileSizeLimit}}', @@ -364,7 +365,7 @@ const that = this; this.http('post', `?code=${that.code}`).then(res => { that.quDrawer = true; - that.files.unshift(res.data); + that.quFiles.unshift(res.data); }) that.code = ''; that.input_disable = false @@ -393,7 +394,7 @@ 'pwd': this.pwd } }).then(res => { - this.files.unshift(res.data); + this.jiFiles.unshift(res.data); this.jiDrawer = true; this.uploadData.text = ''; this.uploadData.file = null; @@ -405,7 +406,7 @@ message: response.detail, type: 'success' }); - this.files.unshift(response.data); + this.jiFiles.unshift(response.data); }, errorUpload(error, file, fileList) { error = JSON.parse(error.message)