test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 95198d4c15 - Show all commits
+1 -1
View File
@@ -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')
+2 -1
View File
@@ -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