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