Browse Source

增加没有数据的提醒

tanxue 1 day ago
parent
commit
862b95111b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      pages/xinshuxue/lookShipin.vue

+ 9 - 0
pages/xinshuxue/lookShipin.vue

@@ -147,6 +147,15 @@
 			},
 			},
 			handleSelectNengliTishengti() {
 			handleSelectNengliTishengti() {
 				if (this.showB) return;
 				if (this.showB) return;
+				
+				if (!this.jieInfo.jiedianList2 || this.jieInfo.jiedianList2.length === 0) {
+					toast("本节无能力提升题");
+					// tab回核心基础题状态
+					this.showB = false;
+					this.showA = true;
+					return; 
+				}
+				
 				this.showB = true;
 				this.showB = true;
 				this.showA = false;
 				this.showA = false;
 				this.$refs.c1 && this.$refs.c1.handleStop()
 				this.$refs.c1 && this.$refs.c1.handleStop()