fix : 修复首页查看跳转问题及简化代码

This commit is contained in:
2024-06-02 11:54:19 +08:00
parent cd715fbf98
commit c05322a2bf
8 changed files with 59 additions and 90 deletions

View File

@@ -128,12 +128,6 @@ const getFileParam = (item) => {
}
}
const handleSubmit = async () => {
// if (JSON.stringify(file.value) === "{}") {
// attachment.value.validate()
// return;
// } else {
// attachment.value.clearValidate()
// }
let files = []
let singleFile = {}
if (file.value.fileId !== undefined) {
@@ -180,12 +174,6 @@ const handleResubmit = () => {
let singleFile = {}
let otherFiles = []
let fileArray
// if (JSON.stringify(file.value) === "{}" || attachment.value.singleFile === null) {
// attachment.value.validate()
// return;
// } else {
// attachment.value.clearValidate()
// }
if (attachment.value.singleFile !== null && name.value === 'Filing/edit') {
singleFile = {
fileId: attachment.value.singleFile.fileId