取消的时候在发一次请求

This commit is contained in:
NiSen
2023-06-21 19:22:14 +08:00
parent 05a8efd5ff
commit 13952a9ea9

View File

@@ -288,6 +288,7 @@ const closeDrawer = () => {
state.selectedRowKeys=[] state.selectedRowKeys=[]
state.selectedRow=[] state.selectedRow=[]
resetFields() resetFields()
getTopList()
emit('update:visible', false) emit('update:visible', false)
} }
@@ -319,6 +320,7 @@ const handleChange = (info) => {
console.log("info", info.file.percent); console.log("info", info.file.percent);
state.status = '正在上传' state.status = '正在上传'
state.progressColor = '' state.progressColor = ''
state.uploadpercent= -1
state.fileList = [] state.fileList = []
state.fileList = info.fileList state.fileList = info.fileList
state.fileName = info.file.name; state.fileName = info.file.name;