diff --git a/src/views/components/ToolEdit.vue b/src/views/components/ToolEdit.vue index 7b1b4af..e2204d2 100644 --- a/src/views/components/ToolEdit.vue +++ b/src/views/components/ToolEdit.vue @@ -64,7 +64,7 @@ /> - + 0) { let installDocFile = [ @@ -513,7 +513,7 @@ export default { filePath: this.form.installDocFile[0].filePath, }, ] - this.$refs.installDocUpload.setInstallDocFileList(installDocFile) + this.$refs.installDocUpload?.setInstallDocFileList(installDocFile) } // 用户使用手册 if (this.form.guideDocFile.length > 0) { @@ -524,7 +524,7 @@ export default { filePath: this.form.guideDocFile[0].filePath, }, ] - this.$refs.guideDocUpload.setInstallDocFileList(guideDocFile) + this.$refs.guideDocUpload?.setInstallDocFileList(guideDocFile) } if (this.form.mp4File.length > 0) { let mp4File = [ @@ -534,7 +534,7 @@ export default { filePath: this.form.mp4File[0].filePath, }, ] - this.$refs.vedioUpload.setInstallDocFileList(mp4File) + this.$refs.vedioUpload?.setInstallDocFileList(mp4File) } } })