s***@163.com
s***@163.com
  • 发布:2024-02-29 13:29
  • 更新:2024-02-29 15:57
  • 阅读:1001

ios运行报错 TypeError: undefined is not an object (evaluating 'this.guideInfo.el') _

分类:uni-app
关联插件: 新手引导提示

ios运行报错
[Vue warn]: Error in event handler for "view.onRequestComponentInfo": "TypeError: undefined is not an object (evaluating 'this.guideInfo.el')"[ERROR] : [Vue warn]: Error in event handler for "view.onRequestComponentInfo": "TypeError: undefined is not an object (evaluating 'this.guideInfo.el')"(found <Root>) ERROR
13:28:49.912 TypeError: undefined is not an object (evaluating 'this.guideInfo.el')
ERROR
13:28:49.912 [Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.guideInfo.tips')"[ERROR] : [Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.guideInfo.tips')"---> <XkyGuideStep> at components/xky-guideStep/xky-guideStep.vue:1

2024-02-29 13:29 负责人:无 分享
已邀请:
喜欢技术的前端

喜欢技术的前端 - QQ---445849201

刚试了,没发现问题,可以传个demo看看,这是正常的

<template>  
    <view class="main-body">  
        <view class="content1" style="height:200rpx"></view>  
        <view class="content2" style="height:200rpx"></view>  
        <view class="content3" style="height:200rpx"></view>  
        <view class="content4" style="height:200rpx"></view>  
        <guideStep :step="step"></guideStep>  
    </view>  
</template>  
<script>  
    import guideStep from "@/components/xky-guideStep/xky-guideStep.vue";  
    export default {  
        components:{  
            guideStep  
        },  
        data() {  
            return {  
                step:{  
                    name:'workbenchKey',  
                    repeat:false,  
                    guideList: [  
                        {  
                            el: '.content1',   
                            tips: '点击这里,步骤一',   
                            style: "border-radius: 8rpx;margin: 0",  
                            next:"下一步"  
                        },{  
                            el: '.content2',   
                            tips: '点击这里,步骤二',   
                            style: "border-radius: 8rpx;margin: 0",  
                            next:"下一步"  
                        },{  
                            el: '.content3',   
                            tips: '点击这里,步骤三!',   
                            style: "border-radius: 8rpx;margin: 0",  
                            next:"我知道啦"  
                        },{  
                            el: '.main-body .content4',  
                            tips: '点击这里,步骤四',  
                            style: "border-radius: 8rpx;margin: 0",  
                            next:"完成"  
                        }]  
                    },  
                }  
            }  
        }  
</script>

要回复问题请先登录注册