xy 1 年之前
父節點
當前提交
84b2fe7eb5
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      xs-app/pages/readbook/read.vue

+ 8 - 5
xs-app/pages/readbook/read.vue

@@ -32,11 +32,11 @@
 	import readPage from '../../components/read/readPage.vue'
 	import settingMenu from '../../components/read/settingMenu.vue'
 	import chapterCatalog from '../../components/read/chapterCatalog.vue'
-	import {onPullDownRefresh,onReachBottom} from '@dcloudio/uni-app'
+	// import {onPullDownRefresh,onReachBottom} from '@dcloudio/uni-app'
 	import { ReadSetting } from '../../stores/readSetting';
 	import { config } from '../../config/config';
 	import { ReadRecord } from '../../stores/readRecordManager';
-	import recharge from '../../components/read/recharge.vue';
+	// import recharge from '../../components/read/recharge.vue';
 	import { http } from '../../framework/http';
 	import { UserData } from '../../stores/userDataManager';
 	
@@ -189,9 +189,12 @@
 	
 	function UnLockChapter(){
 		showRecharge.value = false
-		readPages.value.find((child,index)=>{
-			child.UnLockChapter()
-		})
+		if(readPages.value!=null){
+			readPages.value.find((child,index)=>{
+				child.UnLockChapter()
+			})
+		}
+	
 	}
 	
 	function showBottomLoadingStatus(){