The problem of adding hyperlinks to echarts tree text?

the project needs to add a hyperlink or click event on the tree node text to achieve the page jump effect. I looked at the official document and only found the node click event. The jump is realized through the node click event. The implementation code is as follows

        treeChart.setOption(optiontree);
                   treeChart.on("click",
                        function (params) {
                            const firstType =params.value;
                            const path = "/-sharp/app/itrisk/riskitem?firstType="+firstType;
                            location.href=path;
                        });

question:
1.echarts tree node text, can I add a hyperlink?
can click events be set for 2.echarts tree node text content?

clipboard.png

Feb.27,2021
Does

lz solve this problem?


have you solved the problem? ask urgently

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b308a5-2b49d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b308a5-2b49d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?