runtime-core.esm-bundler.js?5c40:6748 Uncaught TypeError: Cannot create property ‘id‘ on number ‘0‘

 <template #default="scope">
                    <el-button size="mini" @click="handleEdit(scope.$index,scope.row)">编辑</el-button>
                    <el-popconfirm title="Are you sure to delete this?">
                        <template #reference>
                            <el-button size="mini" type="danger" @click="handleDelete(scope.$index,scope.row)">删除</el-button>
                        </template>
                    </el-popconfirm>

                </template>

问题:

HandleEdit 传参错误

              this.form = JSON.parse(JSON.stringify( row));
              this.form.id = this.form.id;
              this.dialogVisible = true
            },

上一篇:【Vue】保留两位小数


下一篇:C/C++ 协议解析通用流转包方法不怕连包