sunchengjie 9 月之前
父节点
当前提交
f84a49182b
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/pages/new/sureCombine.vue

+ 8 - 0
src/pages/new/sureCombine.vue

@@ -167,6 +167,14 @@ export default {
                 this.hasContent = false;
                 return
             }
+            if(this.lastclick == '') {
+                console.log('222222')
+                this.isPhotoOrsize = '图片'
+                this.currentSelect = "请选择照片或签字板"
+                this.context.clearRect(0, 0, this.width, this.height);  
+                this.hasContent = false;
+                return
+            }
             this.isPhotoOrsize = '图片'
             this.currentSelect = "签字板"
             this.context.clearRect(0, 0, this.width, this.height);