var pages = getCurrentPages()
console.log(pages)
- 发布:2020-09-01 14:15
- 更新:2021-01-25 14:57
- 阅读:1108
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 2.8.8
手机系统: iOS
手机系统版本号: iOS 13.4
手机厂商: 苹果
手机机型: iPhone 6s
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
打印页面数组
打印页面数组
实际结果:
报错
[Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
14:10:02.967 (found at pages/device/index.vue:1) __ERROR
报错
[Vue warn]: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
14:10:02.967 (found at pages/device/index.vue:1) __ERROR
bug描述:
使用getCurrentPages获取页面栈后,打印这个对象时,在hb控制台输出错误