onReady(){
console.log('onReady');
let aa = getCurrentPages();
console.log(aa);
},
- 发布:2024-04-14 11:24
- 更新:2024-04-14 11:24
- 阅读:622
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: macOS 12.6.7
HBuilderX类型: 正式
HBuilderX版本号: 4.08
手机系统: Android
手机系统版本号: Android 10
手机机型: SD60(BigSun)
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常打印
正常打印
实际结果:
[Vue warn]: Error in onReady hook: "TypeError: getCurrentPages is not a function"
[Vue warn]: Error in onReady hook: "TypeError: getCurrentPages is not a function"
bug描述:
[Vue warn]: Error in onReady hook: "TypeError: getCurrentPages is not a function"
(found at pages/dynamic/detail.vue:1)
se
o.config.errorHandler
Ze
Ye
Ke
Hr
fv
mounted
Ke
Hr
(anonymous)
wv
Ke
Fn.$emit
subscribeHandler
(anonymous)
va
$v
CallbackManager.consume
TaskCenter.callback
callback
(anonymous)
receiveTasks
callJS
global.(anonymous function)
(anonymous)
(anonymous)
_emit
emit
(anonymous)
TypeError: getCurrentPages is not a function
at onReady (detail.vue:230)
at Ke ()
at o.Hr [as __call_hook] ()
at fv ()
at o.mounted ()
at Ke ()
at o.Hr [as __call_hook] ()
at Array.<anonymous> ()
at Hn.wv ()
at Ke ()
0 个回复