Skip to content

Commit e290b46

Browse files
author
lan-air
committed
修复点击,拖拽上穿
1 parent d74d6cd commit e290b46

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
107107
error_ip_count[request.client.host] = error
108108
return {'code': 404, 'msg': f'取件码错误,错误5次将被禁止10分钟'}
109109
else:
110-
return {'code': 200, 'msg': '取件成功,请点击库查看', 'data': info}
110+
return {'code': 200, 'msg': '取件成功,请点击“取”查看', 'data': info}
111111

112112

113113
@app.post('/share')

templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@
254254
}
255255
},
256256
successUpload(response, file, fileList) {
257-
this.files.push(response.data[0])
257+
this.$message({'message': '上传成功,请点击文件库查看', 'type': 'success'});
258+
this.files.push(response.data)
258259
},
259260
qrcodeUrl(file) {
260261
return 'https://api.qrserver.com/v1/create-qr-code?data=' + window.location.origin + '/?code=' + file.code

0 commit comments

Comments
 (0)