优化上传问题

This commit is contained in:
BianLzhaoMin 2024-07-10 17:55:48 +08:00
parent ecbf580e80
commit de977c0100
1 changed files with 10 additions and 5 deletions

View File

@ -996,9 +996,11 @@ export default {
fileUrl += e.url + ',' fileUrl += e.url + ','
fileName += e.name + ',' fileName += e.name + ','
}) })
this.form.checkUrl = fileUrl.substring(fileUrl.length - 1, 1) this.form.checkUrl = fileUrl.substring(fileUrl.length - 1, ',')
this.form.checkUrlName = fileName.substring(fileName.length - 1, 1) this.form.checkUrlName = fileName.substring(
fileName.length - 1,
',',
)
// console.log(this.form) // console.log(this.form)
// console.log(equipments) // console.log(equipments)
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
@ -1030,8 +1032,11 @@ export default {
fileUrl += e.url + ',' fileUrl += e.url + ','
fileName += e.name + ',' fileName += e.name + ','
}) })
this.aform.checkUrl = fileUrl.substring(fileUrl.length - 1, 1) this.aform.checkUrl = fileUrl.substring(fileUrl.length - 1, ',')
this.aform.checkUrlName = fileName.substring(fileName.length - 1, 1) this.aform.checkUrlName = fileName.substring(
fileName.length - 1,
',',
)
this.$refs['aform'].validate((valid) => { this.$refs['aform'].validate((valid) => {
if (valid) { if (valid) {