@@ -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)