aaron

aaron

🏢  aa /
Casnode 第 126 号会员,加入于 2020-12-22 15:34:05 +08:00
1 G 0 S 0 B
aaron 的最新回复

请教下节点是个什么概念呢,为什么本地 mac 环境搭建好,创建节点报错呢

TypeError: Cannot read property 'length' of null AdminNode.getIndexFromNodeId src/github.com/casbin/casbin-forum/web/src/admin/AdminNode.js:213 210 | } 211 | 212 | getIndexFromNodeId (nodeId) {

213 | for (let i = 0; i <this.state.nodes.length; i++) { | ^ 214 | if (this.state.nodes i.nodeInfo.id === nodeId) { 215 | return i; 216 | } View compiled AdminNode.renderSelect src/github.com/casbin/casbin-forum/web/src/admin/AdminNode.js:447 444 | let value, data; 445 | switch (item) { 446 | case "node": 447 | value = this.getIndexFromNodeId (this.state.form.parentNode); | ^ 448 | data= this.state.nodes.map ((node, i) => { 449 | return {text: ${node.nodeInfo.name} / ${node.nodeInfo.id}, id: i}; 450 | }); View compiled AdminNode.render src/github.com/casbin/casbin-forum/web/src/admin/AdminNode.js:688 685 | 686 | 687 | {i18next.t ("node:Parent node")} 688 | | ^ 689 | {this.renderSelect ("node")} 690 | 691 |

关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   0 人在线   最高记录 30   ·     选择语言  ·     选择编辑器
创意工作者们的社区
World is powered by code
VERSION: 027737b · 6ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
♥ Do have faith in what you're doing.