浏览代码

必须输入图片名称

PrinceLee 5 年之前
父节点
当前提交
fb7a4fb027

+ 8 - 0
src/views/projectManage/bugList/details/index.vue

@@ -1214,6 +1214,14 @@ export default {
       }
     },
     async confirmUpload() {
+      if (this.imageName === null) {
+        this.$message({
+          showClose: true,
+          message: '请输入图片名称',
+          type: 'error'
+        })
+        return false
+      }
       this.showCopyFile = false
       const res = await this.updateFile(window.uploadFiles[0])
       const data = res.data

+ 8 - 0
src/views/projectManage/bugList/file/createdBug.vue

@@ -480,6 +480,14 @@ export default {
       }
     },
     async confirmUpload() {
+      if (this.imageName === null) {
+        this.$message({
+          showClose: true,
+          message: '请输入图片名称',
+          type: 'error'
+        })
+        return false
+      }
       this.showCopyFile = false
       const res = await this.updateFile(window.uploadFiles[0])
       const data = res.data