本码用的是gojs 3.0.3版本
问题:gojs左上角默认有水印,影响页面效果
解决方法:
1、在node_modules中找到go-module.js,路径如下:node_modules/gojs/release/go-module.js
2、搜索下面这段代码:
String.fromCharCode(t.charCodeAt(r)^i[(i[e]+i[s])%256]);
3、在这句代码后加入下面这段代码:
注意:因版本不一样,有可能是 f.indexOf 具体主要看源码定义的变量
if(o.indexOf('GoJS 3.0 evaluation')>-1
|| o.indexOf('© 1998-2021 Northwoods Software')>-1
|| o.indexOf('Not for distribution or production use')>-1
|| o.indexOf('gojs.net')>-1
){
return '';
}else{
return o
}
}
4、最后,重新运行项目,ok