feat: 优化取件逻辑
This commit is contained in:
@@ -440,10 +440,10 @@ const handleSubmit = async () => {
|
|||||||
fileStore.addReceiveData(newFileData)
|
fileStore.addReceiveData(newFileData)
|
||||||
}
|
}
|
||||||
if (isFile) {
|
if (isFile) {
|
||||||
showDrawer.value = true
|
|
||||||
} else {
|
|
||||||
showPreview.value = true
|
|
||||||
selectedRecord.value = newFileData
|
selectedRecord.value = newFileData
|
||||||
|
} else {
|
||||||
|
selectedRecord.value = newFileData
|
||||||
|
showPreview.value = true
|
||||||
}
|
}
|
||||||
alertStore.showAlert('文件获取成功', 'success')
|
alertStore.showAlert('文件获取成功', 'success')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -46,6 +46,16 @@
|
|||||||
>
|
>
|
||||||
发送文本
|
发送文本
|
||||||
</button>
|
</button>
|
||||||
|
<!-- <button
|
||||||
|
type="button"
|
||||||
|
@click="sendType = 'collect'"
|
||||||
|
:class="[
|
||||||
|
'px-4 py-2 rounded-lg',
|
||||||
|
sendType === 'collect' ? 'bg-indigo-600 text-white' : 'bg-gray-700 text-gray-300'
|
||||||
|
]"
|
||||||
|
>
|
||||||
|
收集文件
|
||||||
|
</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<transition name="fade" mode="out-in">
|
<transition name="fade" mode="out-in">
|
||||||
|
|||||||
Reference in New Issue
Block a user