shish 4 лет назад
Родитель
Сommit
d6f7b4cd9d
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      hdPad/src/pages/home/make.vue

+ 7 - 3
hdPad/src/pages/home/make.vue

@@ -85,7 +85,7 @@ export default {
 					this.isLogin = 1
 				}else{
 					this.isLogin = 0
-				}			
+				}
 			}
 		}
 	},
@@ -97,8 +97,12 @@ export default {
 			this.$refs.createWorkRef.close()
 		},
 		commit(){
-				this.$util.hitVoice()
-				this.$refs.createWorkRef.open('center')
+			this.$util.hitVoice()
+			if(this.$util.isEmpty(this.selectList)) {
+				this.$msg('请选择花材')
+				return false
+			}
+			this.$refs.createWorkRef.open('center')
 		},
 		clearItemFn(){
 			this.$util.hitVoice()