Browse Source

打开小说调试信息

yangwenlan 1 year ago
parent
commit
020142e2b5
1 changed files with 12 additions and 0 deletions
  1. 12 0
      app.js

+ 12 - 0
app.js

@@ -1,10 +1,22 @@
 // app.js
 // 引入阅读器插件
 const novelPlugin = requirePlugin('novel-plugin')
+
+
+
 import { userLogin,getChapterUnlockStatus,getNovelDetail,addBrowsingHistory } from './api/api'
 
 App({
   onLaunch() {
+
+    novelPlugin.setLoggerConfig({
+      info: true,
+      debug: true,
+      log: true,
+      warn: true,
+      error: true,
+    })
+
     // 监听进入插件页事件
     novelPlugin.onPageLoad(onNovelPluginLoad)