480 Star 4.4K Fork 1.6K

ssssssss-team / magic-api

 / 详情

在json中包含 render函数=> 报错

待办的
成员
创建于  
2024-03-26 10:19

#用版本(必填,否则不予处理)
2.1.1

该问题是怎么引起的?

在get接口中返回json输出的时候,报错,接口内容如下:
输入图片说明

重现步骤(如果有就写完整)

接口代码如下:

var viewData={
	columnData: [
		{ title: '序号', width: 66, align: 'center', render: ({ rowIndex }) => h('span', {}, rowIndex + 1) },
    { title: '客户端ID', dataIndex: 'clientId', ellipsis: true, tooltip: true },
    { title: '客户端秘钥', dataIndex: 'clientSecret', ellipsis: true, tooltip: true },
    { title: '授权范围', dataIndex: 'contractScope', ellipsis: true, tooltip: true },
    { title: '授权码模式', width: 100, slotName: 'slot-isCode' },
    { title: '隐藏模式', width: 100, slotName: 'slot-isImplicit' },
    { title: '密码模式', width: 100, slotName: 'slot-isPassword' },
    { title: '客户端模式', width: 100, slotName: 'slot-isClient' }
	]
}
return viewdata;

报错信息

后台报错信息:
输入图片说明

评论 (0)

herobeast 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
82594 24295781 1578916762
Java
1
https://gitee.com/ssssssss-team/magic-api.git
git@gitee.com:ssssssss-team/magic-api.git
ssssssss-team
magic-api
magic-api

搜索帮助