wangxy преди 6 месеца
родител
ревизия
0e712c10c2
променени са 1 файла, в които са добавени 6 реда и са изтрити 7 реда
  1. 6 7
      components/catalogue/catalogue.vue

+ 6 - 7
components/catalogue/catalogue.vue

@@ -59,10 +59,15 @@
 
 	const popupRef = ref(null); // 索引
 	const confirmDialogRef = ref(null);
-	const list = ref([]); // 章节
 	const activeCollapse = ref('');
 	const Message = MESSAGE_BEFORE_PAY;
 	const youkeDialogRef = ref(null);
+	
+	const props = defineProps({
+		list: {
+			type: Array,
+		}
+	})
 
 	function ykConfirm() {
 		uni.redirectTo({
@@ -74,12 +79,6 @@
 	 * @summary 展示弹窗 暴露函数
 	 */
 	async function showPopup() {
-		const [err, data] = await getCatalogue();
-		if (err) {
-			toast("章节目录数据获取失败");
-			return;
-		}
-		refreshCatalogue(data);
 		handleShow();
 	}