test/custom-admin-ui #3
@@ -107,7 +107,7 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
|
|||||||
error_ip_count[request.client.host] = error
|
error_ip_count[request.client.host] = error
|
||||||
return {'code': 404, 'msg': f'取件码错误,错误5次将被禁止10分钟'}
|
return {'code': 404, 'msg': f'取件码错误,错误5次将被禁止10分钟'}
|
||||||
else:
|
else:
|
||||||
return {'code': 200, 'msg': '取件成功,请点击库查看', 'data': info}
|
return {'code': 200, 'msg': '取件成功,请点击“取”查看', 'data': info}
|
||||||
|
|
||||||
|
|
||||||
@app.post('/share')
|
@app.post('/share')
|
||||||
|
|||||||
@@ -254,7 +254,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
successUpload(response, file, fileList) {
|
successUpload(response, file, fileList) {
|
||||||
this.files.push(response.data[0])
|
this.$message({'message': '上传成功,请点击文件库查看', 'type': 'success'});
|
||||||
|
this.files.push(response.data)
|
||||||
},
|
},
|
||||||
qrcodeUrl(file) {
|
qrcodeUrl(file) {
|
||||||
return 'https://api.qrserver.com/v1/create-qr-code?data=' + window.location.origin + '/?code=' + file.code
|
return 'https://api.qrserver.com/v1/create-qr-code?data=' + window.location.origin + '/?code=' + file.code
|
||||||
|
|||||||
Reference in New Issue
Block a user