Merge remote-tracking branch 'origin/master'

This commit is contained in:
wangzhijiang
2024-03-08 17:40:22 +08:00
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -355,6 +355,14 @@ export default {
file.uploadGoOn = false file.uploadGoOn = false
return false return false
} }
if (this.fileType === 'docx') {
if (!(fileSuffix === 'docx')) {
this.$message.warning(this.$t('uploadFile.pleaseUpload') + `${this.fileType}` + this.$t('uploadFile.file'))
this.uploadGoOn = false
file.uploadGoOn = false
return false
}
}
if (this.fileType.indexOf(fileSuffix) === -1) { if (this.fileType.indexOf(fileSuffix) === -1) {
this.$message.warning(this.$t('uploadFile.pleaseUpload') + `${this.fileType}` + this.$t('uploadFile.file')) this.$message.warning(this.$t('uploadFile.pleaseUpload') + `${this.fileType}` + this.$t('uploadFile.file'))
this.uploadGoOn = false this.uploadGoOn = false
@@ -71,7 +71,7 @@
return-id return-id
:number="1" :number="1"
class="line-btn" class="line-btn"
file-type="doc,docx" /> file-type="docx" />
</div> </div>
</a-form-item> </a-form-item>
</a-form> </a-form>