for example, before uploading a file, the name of the inspection form on the interface must be filled in. If it is empty, give a prompt. The pop-up box for the selected file will open only if you click Select File after filling in the value.
<div slot="footer" class="dialog-footer">
<el-button class="file-cancel-btn" @click="showImportContent = false" size="mini" style=""> </el-button>
<a href="javascript:;" class="a-upload" @click="checkBeforeImport">
<input id="upload" type="file" @change="importfxx(this)" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
</a>
</div>
at present, the prompt to prohibit non-empty has popped up, but the pop-up window of the file has also popped up and has not been stopped.