XSLu08042 4 일 전
부모
커밋
064fd69a17
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pages_index/packageForm.vue

+ 1 - 1
pages_index/packageForm.vue

@@ -256,7 +256,7 @@
 				uni.showLoading({
 					title:"处理中..."
 				})
-				const num = Math.floor(Math.random() * this.items[2].options.length);
+				const num = Math.floor(Math.random() * (this.items[2].options.length-1));
 				this.items = this.items.map(item=>({
 					...item,
 					option: item.title == "请选择线下已确诊疾病"&&item.option =='其他' ? item.options[num].name:item.option