Skip to content

Commit

Permalink
Merge pull request #1242 from AdamCaoQAQ/feat_hummer_mode
Browse files Browse the repository at this point in the history
Feat hummer mode
  • Loading branch information
Blackgan3 authored Jul 11, 2023
2 parents c3f2575 + ea678bc commit 85178df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/core/src/platform/export/index.tenon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ export {
getCurrentScope,
onScopeDispose
}

3 changes: 1 addition & 2 deletions packages/core/src/platform/patch/tenon/getDefaultOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ function initProxy (context, rawOptions) {
// 缓存options
context.$rawOptions = rawOptions
// 创建proxy对象
context.__mpxProxy = new MPXProxy(rawOptions, context)
context.__mpxProxy = new MpxProxy(rawOptions, context)
context.__mpxProxy.callHook(CREATED, Hummer.pageInfo && Hummer.pageInfo.params && [Hummer.pageInfo.params])
}

export function getDefaultOptions (type, { rawOptions = {}, currentInject }) {

const rawSetup = rawOptions.setup
if (rawSetup) {
rawOptions.setup = (props) => {
Expand Down

0 comments on commit 85178df

Please sign in to comment.