浏览代码

场景值

hank 1 年之前
父节点
当前提交
2412ced282
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app.js

+ 2 - 2
app.js

@@ -7,8 +7,8 @@ const novelPlugin = requirePlugin('novel-plugin')
 import { userLogin,getChapterUnlockStatus,getNovelDetail,addBrowsingHistory } from './api/api'
 
 App({
-  onLaunch() {
-
+  onLaunch(options) {
+    console.log('场景值:',options.scene);
     novelPlugin.setLoggerConfig({
       info: true,
       debug: true,