You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platforms/mp/runtime/events.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -101,9 +101,9 @@ export function handleProxyWithVue (e) {
101
101
constevent=getWebEventByMP(e)
102
102
handles.forEach(h=>h(event))
103
103
}else{
104
-
constcurrentPage=vm.$mp.page.route
104
+
const{ route }=rootVueVM.$mp.page
105
105
console.group(newDate()+' 事件警告')
106
-
console.warn(`Do not have handler in current page: ${currentPage}. Please make sure that handler has been defined in ${currentPage}, or ${currentPage} has been added into app.json`)
106
+
console.warn(`Do not have handler in current page: ${route}. Please make sure that handler has been defined in ${route}, or ${route} has been added into app.json`)
0 commit comments