|
|
@@ -97,9 +97,11 @@ export default {
|
|
|
async dataFormSubmit () {
|
|
|
try{
|
|
|
let imgUrlArr = this.dataForm.templateUrl.split(",");
|
|
|
- let imgUrlArr2 = this.dataForm.templateUseUrl.split(",");
|
|
|
+ if(this.dataForm.templateUseUrl){
|
|
|
+ let imgUrlArr2 = this.dataForm.templateUseUrl.split(",");
|
|
|
+ await Promise.all(imgUrlArr2.map(this.checkImageSize));
|
|
|
+ }
|
|
|
await Promise.all(imgUrlArr.map(this.checkImageSize));
|
|
|
- await Promise.all(imgUrlArr2.map(this.checkImageSize));
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl('/prod/qrCodeTemplate'),
|
|
|
method: this.dataForm.templateId ? 'put' : 'post',
|