Skip to content

Commit

Permalink
fix(mp): 企业微信小程序支持 onNFCReadMessage (question/166024)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Mar 30, 2023
1 parent 4e6c1ba commit a3f1298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions dist/mp.runtime.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Vue.js v2.6.11
* (c) 2014-2022 Evan You
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/
/* */
Expand Down Expand Up @@ -6021,12 +6021,13 @@ var LIFECYCLE_HOOKS$1 = [
'onNavigationBarSearchInputChanged',
'onNavigationBarSearchInputConfirmed',
'onNavigationBarSearchInputClicked',
'onUploadDouyinVideo',
'onNFCReadMessage',
//Component
// 'onReady', // 兼容旧版本,应该移除该事件
'onPageShow',
'onPageHide',
'onPageResize',
'onUploadDouyinVideo'
'onPageResize'
];
function lifecycleMixin$1(Vue) {

Expand Down
5 changes: 3 additions & 2 deletions src/platforms/mp/runtime/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ const LIFECYCLE_HOOKS = [
'onNavigationBarSearchInputChanged',
'onNavigationBarSearchInputConfirmed',
'onNavigationBarSearchInputClicked',
'onUploadDouyinVideo',
'onNFCReadMessage',
//Component
// 'onReady', // 兼容旧版本,应该移除该事件
'onPageShow',
'onPageHide',
'onPageResize',
'onUploadDouyinVideo'
'onPageResize'
]
export function lifecycleMixin(Vue: Class<Component>) {

Expand Down

0 comments on commit a3f1298

Please sign in to comment.