也就是从这个效果:

变成这种效果:

代码是从这样的:
- let edges = new vis.DataSet([
- {
- from: 1,
- to: 2,
- label: '<b>①用户提交表单</b>'
- },
- {
- from: 2,
- to: 3,
- label: '<b>②验证并提交数据</b>'
- },
- {
- from: 3,
- to: 4,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>③分析数据调用模块</b>'
- },
- {
- from: 4,
- to: 3,
- label: '<b>④结果以Base64返回</b>'
- },
- {
- from: 3,
- to: 2,
-
- label: '<b>⑤结果以Json形式返回</b>'
- },
- {
- from: 2,
- to: 1,
- label: '<b>⑥头像返回给用户</b>'
- }
- ]);
改成这样的:
- let edges = new vis.DataSet([
- {
- from: 1,
- to: 2,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>①用户提交表单</b>'
- },
- {
- from: 2,
- to: 3,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>②验证并提交数据</b>'
- },
- {
- from: 3,
- to: 4,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>③分析数据调用模块</b>'
- },
- {
- from: 4,
- to: 3,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>④结果以Base64返回</b>'
- },
- {
- from: 3,
- to: 2,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>⑤结果以Json形式返回</b>'
- },
- {
- from: 2,
- to: 1,
- smooth: {type: 'curvedCW', roundness: 0.5},
- label: '<b>⑥头像返回给用户</b>'
- }
- ]);
其实就是添加好roundness和curvedCW即可。


![战神引擎传奇手游【黯晶灭世[白猪3.1]】最新整理Win系特色服务端+安卓苹果双端+GM授权后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251028/0F2E0E55BA6157D5F76B8125D0A511AC.jpg)
















