From 95198d4c154e870a2f5785dfc5f818392ae4fd5e Mon Sep 17 00:00:00 2001 From: lan-air Date: Sat, 10 Dec 2022 09:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=EF=BC=8C?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E4=B8=8A=E7=A9=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- templates/index.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 450706c..48ed907 100644 --- a/main.py +++ b/main.py @@ -107,7 +107,7 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)): error_ip_count[request.client.host] = error return {'code': 404, 'msg': f'取件码错误,错误5次将被禁止10分钟'} else: - return {'code': 200, 'msg': '取件成功,请点击库查看', 'data': info} + return {'code': 200, 'msg': '取件成功,请点击“取”查看', 'data': info} @app.post('/share') diff --git a/templates/index.html b/templates/index.html index 28695e9..bc4b3bc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -254,7 +254,8 @@ } }, successUpload(response, file, fileList) { - this.files.push(response.data[0]) + this.$message({'message': '上传成功,请点击文件库查看', 'type': 'success'}); + this.files.push(response.data) }, qrcodeUrl(file) { return 'https://api.qrserver.com/v1/create-qr-code?data=' + window.location.origin + '/?code=' + file.code