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